#AFB042#AFB042
#AFB042 is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.5% C 0.131 H 109.7°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB042 |
|---|---|
| RGB | rgb(175, 176, 66) |
| HSL | hsl(61, 45%, 47%) |
| HSV | hsv(61, 63%, 69%) |
| CMYK | cmyk(0.6%, 0%, 62.5%, 31%) |
| CIE-LAB | lab(69.87, -14.52, 54.39) |
| CIE-LCH | lch(69.87, 56.29, 104.95°) |
| OKLab | oklab(73.52% -0.0444 0.1237) |
| OKLCH | oklch(73.52% 0.131 109.7) |
| XYZ | xyz(34.1889, 40.5589, 11.1809) |
| Luminance | 0.4056 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.66
Mustard Green
#A8B504
ΔE00 4.93
Puke
#A5A502
ΔE00 5.00
Puke Green
#9AAE07
ΔE00 5.55
Snot
#ACBB0D
ΔE00 5.61
Booger
#9BB53C
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB042 #4342B0
analogous
#B07A42 #AFB042 #78B042
triadic
#AFB042 #42AFB0 #B042AF
tetradic
#AFB042 #42B07A #4342B0 #B04278
square
#AFB042 #42B07A #4342B0 #B04278
split-complementary
#AFB042 #4278B0 #7A42B0
monochromatic
#565721 #838331 #AFB042 #C6C769 #D7D795
Accessibility & contrast
On white
2.30
#AFB042 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.11
#AFB042 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB042
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB042 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB042 | 1.00 | 2.30 | 9.11 | 9.11 |
| #FFFFFF | 2.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA934
Deuteranopia (green-blind)
#BFAC49
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #afb042; /* rgb */ color: rgb(175, 176, 66); /* oklch */ color: oklch(73.5% 0.131 109.7);
Tailwind
colors: {
custom: {
50: '#cac77c',
500: '#afb042',
950: '#000000',
},
}SCSS
$custom: #afb042; $custom-light: #cac77c; $custom-dark: #000000;
JSON
{
"hex": "#afb042",
"rgb": {
"r": 175,
"g": 176,
"b": 66
},
"hsl": {
"h": 60.545,
"s": 45.455,
"l": 47.451
},
"oklch": {
"l": 0.73521,
"c": 0.13146,
"h": 109.7
},
"luminance": 0.40558
}Semantic roles & 50–950 ramp
primary
#AFB042
secondary
#8B8BC3
accent
#53D554
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C