#AFB951#AFB951
#AFB951 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.7% C 0.129 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB951 |
|---|---|
| RGB | rgb(175, 185, 81) |
| HSL | hsl(66, 43%, 52%) |
| HSV | hsv(66, 56%, 73%) |
| CMYK | cmyk(5.4%, 0%, 56.2%, 27.5%) |
| CIE-LAB | lab(72.50, -17.99, 50.62) |
| CIE-LCH | lch(72.50, 53.72, 109.56°) |
| OKLab | oklab(75.67% -0.0526 0.1177) |
| OKLCH | oklch(75.67% 0.129 114.1) |
| XYZ | xyz(36.5141, 44.4066, 14.4308) |
| Luminance | 0.4441 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Olive Green
#A4BE5C
ΔE00 4.21
Booger
#9BB53C
ΔE00 4.21
Light Olive
#ACBF69
ΔE00 4.27
Sick Green
#9DB92C
ΔE00 4.89
Pea
#A4BF20
ΔE00 5.57
Darkkhaki
#BDB76B
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB951 #5B51B9
analogous
#B98F51 #AFB951 #7BB951
triadic
#AFB951 #51AFB9 #B951AF
tetradic
#AFB951 #51B98F #5B51B9 #B9517B
square
#AFB951 #51B98F #5B51B9 #B9517B
split-complementary
#AFB951 #517BB9 #8F51B9
monochromatic
#616629 #8A923B #AFB951 #C3CB7D #D7DCA8
Accessibility & contrast
On white
2.13
#AFB951 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.88
#AFB951 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB951
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB951 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB951 | 1.00 | 2.13 | 9.88 | 9.88 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5B146
Deuteranopia (green-blind)
#C5B357
Tritanopia (blue-blind)
#B9AFA2
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afb951; /* rgb */ color: rgb(175, 185, 81); /* oklch */ color: oklch(75.7% 0.129 114.1);
Tailwind
colors: {
custom: {
50: '#c9cd85',
500: '#afb951',
950: '#000000',
},
}SCSS
$custom: #afb951; $custom-light: #c9cd85; $custom-dark: #000000;
JSON
{
"hex": "#afb951",
"rgb": {
"r": 175,
"g": 185,
"b": 81
},
"hsl": {
"h": 65.769,
"s": 42.623,
"l": 52.157
},
"oklch": {
"l": 0.7567,
"c": 0.12887,
"h": 114.1
},
"luminance": 0.44406
}Semantic roles & 50–950 ramp
primary
#AFB951
secondary
#A19CCA
accent
#55D261
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#13130B
muted
#82827C