#ACC21F#ACC21F
#ACC21F is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.1% C 0.172 H 117.8°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).
Color values
| HEX | #ACC21F |
|---|---|
| RGB | rgb(172, 194, 31) |
| HSL | hsl(68, 72%, 44%) |
| HSV | hsv(68, 84%, 76%) |
| CMYK | cmyk(11.3%, 0%, 84%, 23.9%) |
| CIE-LAB | lab(74.48, -26.39, 70.42) |
| CIE-LCH | lch(74.48, 75.20, 110.54°) |
| OKLab | oklab(77.1% -0.0802 0.152) |
| OKLCH | oklch(77.1% 0.172 117.8) |
| XYZ | xyz(36.5533, 47.4536, 8.5299) |
| Luminance | 0.4745 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 1.57
Gross Green
#A0BF16
ΔE00 2.15
Snot
#ACBB0D
ΔE00 2.26
Bile
#B5C306
ΔE00 2.38
Baby Puke Green
#B6C406
ΔE00 2.50
Snot Green
#9DC100
ΔE00 2.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ACC21F #351FC2
analogous
#C2871F #ACC21F #5BC21F
triadic
#ACC21F #1FACC2 #C21FAC
tetradic
#ACC21F #1FC287 #351FC2 #C21F5B
square
#ACC21F #1FC287 #351FC2 #C21F5B
split-complementary
#ACC21F #1F5BC2 #871FC2
monochromatic
#4E580E #7D8D17 #ACC21F #CAE03E #D9E973
Accessibility & contrast
On white
2.00
#ACC21F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.49
#ACC21F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ACC21F
10.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ACC21F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ACC21F | 1.00 | 2.00 | 10.49 | 10.49 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#CDB832
Tritanopia (blue-blind)
#B7B7A6
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #acc21f; /* rgb */ color: rgb(172, 194, 31); /* oklch */ color: oklch(77.1% 0.172 117.8);
Tailwind
colors: {
custom: {
50: '#c9d46d',
500: '#acc21f',
950: '#000000',
},
}SCSS
$custom: #acc21f; $custom-light: #c9d46d; $custom-dark: #000000;
JSON
{
"hex": "#acc21f",
"rgb": {
"r": 172,
"g": 194,
"b": 31
},
"hsl": {
"h": 68.098,
"s": 72.444,
"l": 44.118
},
"oklch": {
"l": 0.771,
"c": 0.17184,
"h": 117.8
},
"luminance": 0.47453
}Semantic roles & 50–950 ramp
primary
#ACC21F
secondary
#7B6DCF
accent
#39EF51
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B