#AFB41A#AFB41A
#AFB41A is a light, vivid yellow. Relative luminance 0.418; OKLCH L 74.2% C 0.158 H 111.7°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB41A |
|---|---|
| RGB | rgb(175, 180, 26) |
| HSL | hsl(62, 75%, 40%) |
| HSV | hsv(62, 86%, 71%) |
| CMYK | cmyk(2.8%, 0%, 85.6%, 29.4%) |
| CIE-LAB | lab(70.75, -18.35, 68.51) |
| CIE-LCH | lch(70.75, 70.93, 105.00°) |
| OKLab | oklab(74.16% -0.0586 0.1469) |
| OKLCH | oklch(74.16% 0.158 111.7) |
| XYZ | xyz(34.1882, 41.8320, 7.2505) |
| Luminance | 0.4183 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.82
Snot
#ACBB0D
ΔE00 2.63
Puke Yellow
#C2BE0E
ΔE00 4.14
Puke Green
#9AAE07
ΔE00 4.21
Bile
#B5C306
ΔE00 4.22
Puke
#A5A502
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB41A #1F1AB4
analogous
#B46C1A #AFB41A #62B41A
triadic
#AFB41A #1AAFB4 #B41AAF
tetradic
#AFB41A #1AB46C #1F1AB4 #B41A62
square
#AFB41A #1AB46C #1F1AB4 #B41A62
split-complementary
#AFB41A #1A62B4 #6C1AB4
monochromatic
#47490B #7B7F12 #AFB41A #DAE02B #E4E860
Accessibility & contrast
On white
2.24
#AFB41A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.37
#AFB41A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB41A
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB41A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB41A | 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)
#C3AF2B
Tritanopia (blue-blind)
#BCA899
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb41a; /* rgb */ color: rgb(175, 180, 26); /* oklch */ color: oklch(74.2% 0.158 111.7);
Tailwind
colors: {
custom: {
50: '#cbca69',
500: '#afb41a',
950: '#000000',
},
}SCSS
$custom: #afb41a; $custom-light: #cbca69; $custom-dark: #000000;
JSON
{
"hex": "#afb41a",
"rgb": {
"r": 175,
"g": 180,
"b": 26
},
"hsl": {
"h": 61.948,
"s": 74.757,
"l": 40.392
},
"oklch": {
"l": 0.74161,
"c": 0.15814,
"h": 111.7
},
"luminance": 0.41831
}Semantic roles & 50–950 ramp
primary
#AFB41A
secondary
#615DCC
accent
#36F13C
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A