#AFAB56#AFAB56
#AFAB56 is a light, moderate yellow. Relative luminance 0.389; OKLCH L 72.6% C 0.108 H 106.4°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB56 |
|---|---|
| RGB | rgb(175, 171, 86) |
| HSL | hsl(57, 36%, 51%) |
| HSV | hsv(57, 51%, 69%) |
| CMYK | cmyk(0%, 2.3%, 50.9%, 31.4%) |
| CIE-LAB | lab(68.69, -10.37, 43.82) |
| CIE-LCH | lch(68.69, 45.03, 103.31°) |
| OKLab | oklab(72.65% -0.0304 0.1035) |
| OKLCH | oklch(72.65% 0.108 106.4) |
| XYZ | xyz(33.9227, 38.9126, 14.5262) |
| Luminance | 0.3891 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.22
Darkkhaki
#BDB76B
ΔE00 3.96
Vomit
#A2A415
ΔE00 6.75
Puke
#A5A502
ΔE00 7.30
Light Olive
#ACBF69
ΔE00 7.52
Booger
#9BB53C
ΔE00 7.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB56 #565AAF
analogous
#AF7E56 #AFAB56 #86AF56
triadic
#AFAB56 #56AFAB #AB56AF
tetradic
#AFAB56 #56AF7E #565AAF #AF5686
square
#AFAB56 #56AF7E #565AAF #AF5686
split-complementary
#AFAB56 #5686AF #7E56AF
monochromatic
#5E5C2D #888440 #AFAB56 #C3C080 #D6D4A9
Accessibility & contrast
On white
2.39
#AFAB56 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.78
#AFAB56 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB56
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB56 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB56 | 1.00 | 2.39 | 8.78 | 8.78 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A54E
Deuteranopia (green-blind)
#B9A95A
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afab56; /* rgb */ color: rgb(175, 171, 86); /* oklch */ color: oklch(72.6% 0.108 106.4);
Tailwind
colors: {
custom: {
50: '#c9c388',
500: '#afab56',
950: '#000000',
},
}SCSS
$custom: #afab56; $custom-light: #c9c388; $custom-dark: #000000;
JSON
{
"hex": "#afab56",
"rgb": {
"r": 175,
"g": 171,
"b": 86
},
"hsl": {
"h": 57.303,
"s": 35.743,
"l": 51.176
},
"oklch": {
"l": 0.72647,
"c": 0.10786,
"h": 106.4
},
"luminance": 0.38912
}Semantic roles & 50–950 ramp
primary
#AFAB56
secondary
#9D9FC4
accent
#61CC5C
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120B
muted
#82817C