#AFAB5F#AFAB5F
#AFAB5F is a light, moderate yellow. Relative luminance 0.391; OKLCH L 72.8% C 0.098 H 105.9°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB5F |
|---|---|
| RGB | rgb(175, 171, 95) |
| HSL | hsl(57, 33%, 53%) |
| HSV | hsv(57, 46%, 69%) |
| CMYK | cmyk(0%, 2.3%, 45.7%, 31.4%) |
| CIE-LAB | lab(68.80, -9.51, 39.45) |
| CIE-LCH | lch(68.80, 40.58, 103.55°) |
| OKLab | oklab(72.77% -0.027 0.0946) |
| OKLCH | oklch(72.77% 0.098 105.9) |
| XYZ | xyz(34.3084, 39.0669, 16.5576) |
| Luminance | 0.3907 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 1.99
Darkkhaki
#BDB76B
ΔE00 3.53
Sand
#C2B280
ΔE00 7.38
Light Olive
#ACBF69
ΔE00 7.41
Tan Green
#A9BE70
ΔE00 7.79
Vomit
#A2A415
ΔE00 8.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB5F #5F63AF
analogous
#AF835F #AFAB5F #8BAF5F
triadic
#AFAB5F #5FAFAB #AB5FAF
tetradic
#AFAB5F #5FAF83 #5F63AF #AF5F8B
square
#AFAB5F #5FAF83 #5F63AF #AF5F8B
split-complementary
#AFAB5F #5F8BAF #835FAF
monochromatic
#626031 #8B8846 #AFAB5F #C3C088 #D8D6B1
Accessibility & contrast
On white
2.38
#AFAB5F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.81
#AFAB5F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB5F
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB5F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB5F | 1.00 | 2.38 | 8.81 | 8.81 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B6A659
Deuteranopia (green-blind)
#B8AA62
Tritanopia (blue-blind)
#B9A299
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afab5f; /* rgb */ color: rgb(175, 171, 95); /* oklch */ color: oklch(72.8% 0.098 105.9);
Tailwind
colors: {
custom: {
50: '#c8c38e',
500: '#afab5f',
950: '#000000',
},
}SCSS
$custom: #afab5f; $custom-light: #c8c38e; $custom-dark: #000000;
JSON
{
"hex": "#afab5f",
"rgb": {
"r": 175,
"g": 171,
"b": 95
},
"hsl": {
"h": 57,
"s": 33.333,
"l": 52.941
},
"oklch": {
"l": 0.72772,
"c": 0.09841,
"h": 105.9
},
"luminance": 0.39066
}Semantic roles & 50–950 ramp
primary
#AFAB5F
secondary
#A4A5C6
accent
#64C95E
background
#FCFCF8
surface
#F8F8F0
border
#D1D1CB
text
#13120C
muted
#82817D