#AFBB42#AFBB42
#AFBB42 is a light, vivid yellow. Relative luminance 0.450; OKLCH L 76.0% C 0.144 H 114.7°. Best body text is #000000 at 10.01:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBB42 |
|---|---|
| RGB | rgb(175, 187, 66) |
| HSL | hsl(66, 48%, 50%) |
| HSV | hsv(66, 65%, 73%) |
| CMYK | cmyk(6.4%, 0%, 64.7%, 26.7%) |
| CIE-LAB | lab(72.92, -20.08, 57.62) |
| CIE-LCH | lch(72.92, 61.02, 109.22°) |
| OKLab | oklab(75.97% -0.06 0.1306) |
| OKLCH | oklch(75.97% 0.144 114.7) |
| XYZ | xyz(36.4338, 45.0486, 11.9292) |
| Luminance | 0.4505 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.70
Sick Green
#9DB92C
ΔE00 3.72
Pea
#A4BF20
ΔE00 3.81
Booger
#9BB53C
ΔE00 3.99
Mustard Green
#A8B504
ΔE00 4.05
Gross Green
#A0BF16
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBB42 #4E42BB
analogous
#BB8A42 #AFBB42 #73BB42
triadic
#AFBB42 #42AFBB #BB42AF
tetradic
#AFBB42 #42BB8A #4E42BB #BB4273
square
#AFBB42 #42BB8A #4E42BB #BB4273
split-complementary
#AFBB42 #4273BB #8A42BB
monochromatic
#5A6122 #858E32 #AFBB42 #C3CC6E #D6DC9C
Accessibility & contrast
On white
2.10
#AFBB42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.01
#AFBB42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBB42
10.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBB42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBB42 | 1.00 | 2.10 | 10.01 | 10.01 |
| #FFFFFF | 2.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B232
Deuteranopia (green-blind)
#C7B44A
Tritanopia (blue-blind)
#BAB1A2
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #afbb42; /* rgb */ color: rgb(175, 187, 66); /* oklch */ color: oklch(76.0% 0.144 114.7);
Tailwind
colors: {
custom: {
50: '#cacf7c',
500: '#afbb42',
950: '#000000',
},
}SCSS
$custom: #afbb42; $custom-light: #cacf7c; $custom-dark: #000000;
JSON
{
"hex": "#afbb42",
"rgb": {
"r": 175,
"g": 187,
"b": 66
},
"hsl": {
"h": 65.95,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.75967,
"c": 0.14369,
"h": 114.7
},
"luminance": 0.45048
}Semantic roles & 50–950 ramp
primary
#AFBB42
secondary
#9691C8
accent
#50D75E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C