#AFB41E#AFB41E
#AFB41E is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.157 H 111.7°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB41E |
|---|---|
| RGB | rgb(175, 180, 30) |
| HSL | hsl(62, 71%, 41%) |
| HSV | hsv(62, 83%, 71%) |
| CMYK | cmyk(2.8%, 0%, 83.3%, 29.4%) |
| CIE-LAB | lab(70.77, -18.25, 67.61) |
| CIE-LCH | lch(70.77, 70.02, 105.10°) |
| OKLab | oklab(74.18% -0.058 0.1456) |
| OKLCH | oklch(74.18% 0.157 111.7) |
| XYZ | xyz(34.2360, 41.8511, 7.5027) |
| Luminance | 0.4185 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.87
Snot
#ACBB0D
ΔE00 2.67
Puke Green
#9AAE07
ΔE00 4.18
Puke Yellow
#C2BE0E
ΔE00 4.23
Bile
#B5C306
ΔE00 4.28
Puke
#A5A502
ΔE00 4.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB41E #231EB4
analogous
#B46E1E #AFB41E #64B41E
triadic
#AFB41E #1EAFB4 #B41EAF
tetradic
#AFB41E #1EB46E #231EB4 #B41E64
square
#AFB41E #1EB46E #231EB4 #B41E64
split-complementary
#AFB41E #1E64B4 #6E1EB4
monochromatic
#494B0D #7C8015 #AFB41E #D7DD32 #E1E667
Accessibility & contrast
On white
2.24
#AFB41E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.37
#AFB41E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB41E
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB41E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB41E | 1.00 | 2.24 | 9.37 | 9.37 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AB00
Deuteranopia (green-blind)
#C3AF2E
Tritanopia (blue-blind)
#BCA89A
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb41e; /* rgb */ color: rgb(175, 180, 30); /* oklch */ color: oklch(74.2% 0.157 111.7);
Tailwind
colors: {
custom: {
50: '#cbca6b',
500: '#afb41e',
950: '#000000',
},
}SCSS
$custom: #afb41e; $custom-light: #cbca6b; $custom-dark: #000000;
JSON
{
"hex": "#afb41e",
"rgb": {
"r": 175,
"g": 180,
"b": 30
},
"hsl": {
"h": 62,
"s": 71.429,
"l": 41.176
},
"oklch": {
"l": 0.74176,
"c": 0.15673,
"h": 111.7
},
"luminance": 0.4185
}Semantic roles & 50–950 ramp
primary
#AFB41E
secondary
#6663CB
accent
#3AEE40
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A