#AFAB5A#AFAB5A
#AFAB5A is a light, moderate yellow. Relative luminance 0.390; OKLCH L 72.7% C 0.104 H 106.2°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB5A |
|---|---|
| RGB | rgb(175, 171, 90) |
| HSL | hsl(57, 35%, 52%) |
| HSV | hsv(57, 49%, 69%) |
| CMYK | cmyk(0%, 2.3%, 48.6%, 31.4%) |
| CIE-LAB | lab(68.74, -10.00, 41.90) |
| CIE-LCH | lch(68.74, 43.07, 103.42°) |
| OKLab | oklab(72.7% -0.0289 0.0996) |
| OKLCH | oklch(72.7% 0.104 106.2) |
| XYZ | xyz(34.0884, 38.9789, 15.3989) |
| Luminance | 0.3898 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.65
Darkkhaki
#BDB76B
ΔE00 3.70
Vomit
#A2A415
ΔE00 7.35
Light Olive
#ACBF69
ΔE00 7.43
Puke
#A5A502
ΔE00 7.92
Tan Green
#A9BE70
ΔE00 7.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB5A #5A5EAF
analogous
#AF805A #AFAB5A #89AF5A
triadic
#AFAB5A #5AAFAB #AB5AAF
tetradic
#AFAB5A #5AAF80 #5A5EAF #AF5A89
square
#AFAB5A #5AAF80 #5A5EAF #AF5A89
split-complementary
#AFAB5A #5A89AF #805AAF
monochromatic
#605E2F #898643 #AFAB5A #C3C083 #D7D5AC
Accessibility & contrast
On white
2.39
#AFAB5A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.80
#AFAB5A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB5A
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB5A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB5A | 1.00 | 2.39 | 8.80 | 8.80 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B7A653
Deuteranopia (green-blind)
#B9A95E
Tritanopia (blue-blind)
#BAA298
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afab5a; /* rgb */ color: rgb(175, 171, 90); /* oklch */ color: oklch(72.7% 0.104 106.2);
Tailwind
colors: {
custom: {
50: '#c9c38a',
500: '#afab5a',
950: '#000000',
},
}SCSS
$custom: #afab5a; $custom-light: #c9c38a; $custom-dark: #000000;
JSON
{
"hex": "#afab5a",
"rgb": {
"r": 175,
"g": 171,
"b": 90
},
"hsl": {
"h": 57.176,
"s": 34.694,
"l": 51.961
},
"oklch": {
"l": 0.72701,
"c": 0.10375,
"h": 106.2
},
"luminance": 0.38978
}Semantic roles & 50–950 ramp
primary
#AFAB5A
secondary
#A0A2C5
accent
#62CB5D
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13120C
muted
#82817D