Skip to content
HSL format page

HSL Color Codes

Explore HSL values with a live color picker, format-aware previews, conversion rows, and contrast guidance.

Custom picker

Fine-tune your color

Drag the field, adjust hue and alpha, or paste any supported format.

110°
100%

Tip: you can paste formats like #3f7f2f, rgb(63, 127, 47), hsl(110, 45%, 35%), or oklch(0.7, 0.1, 220).

Current HSL value
Parsed from input
hsl(110, 45%, 35%)
Foreground preview
WCAG contrast checker and foreground picker
Best auto foreground
Best contrast with white
#ffffff
Auto-selects the strongest contrast against the current background.
Readable text preview
The quick brown fox jumps over the lazy dog.
Button preview
Contrast ratio
4.78
Passes AA for normal text
Element AA AAA
Small text Pass Fail
Large text Pass
UI elements / graphics Pass N/A
AA for normal text is typically 4.5:1, AA for large text 3:1, AAA for normal text 7:1, and non-text UI elements typically 3:1.
About HSL

HSL

Hue, saturation, and lightness.

HSL is convenient for visual adjustments because you can change lightness or saturation without manually rebalancing the color channels.

Best for editing and generating color variations.

Convert to other formats

Jump directly to the same color in another notation.

Color Conversion

Same color in multiple code formats.

Export formats

Ready-to-copy snippets for developers, apps, frameworks, and design systems.

#3E8131
CSS variable
Tokens
JSON token
Tokens
Tailwind config
Tokens
SCSS variable
Tokens
JavaScript
Frontend
TypeScript
Frontend
Inline style
Frontend
CSS class
Frontend
Android XML
Mobile
SwiftUI
Mobile
Swift UIColor
Mobile
Kotlin
Mobile
Flutter
Mobile
React Native
Mobile
SVG fill
Graphics
SVG stroke
Graphics

Color Variations

tint / shade
Tint
Lightened version
#74a46b
Shade
Darkened version
#2f6225
Tone
Muted version
#4d8142
Monochrome
Single-hue family
#1e3f18

Supported format references

Compare the supported formats and move between them without losing the same color context.