#AFA86F#AFA86F
#AFA86F is a light, moderate yellow. Relative luminance 0.383; OKLCH L 72.4% C 0.077 H 102.1°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA86F |
|---|---|
| RGB | rgb(175, 168, 111) |
| HSL | hsl(53, 29%, 56%) |
| HSV | hsv(53, 37%, 69%) |
| CMYK | cmyk(0%, 4%, 36.6%, 31.4%) |
| CIE-LAB | lab(68.22, -6.16, 30.38) |
| CIE-LCH | lch(68.22, 31.00, 101.46°) |
| OKLab | oklab(72.39% -0.0161 0.0749) |
| OKLCH | oklch(72.39% 0.077 102.1) |
| XYZ | xyz(34.5516, 38.2678, 20.6022) |
| Luminance | 0.3827 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.62
Sand
#C2B280
ΔE00 5.02
Darkkhaki
#BDB76B
ΔE00 5.35
Stone (survey)
#ADA587
ΔE00 7.12
Sandstone
#C9AE74
ΔE00 7.20
Putty
#BEAE8A
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA86F #6F76AF
analogous
#AF886F #AFA86F #96AF6F
triadic
#AFA86F #6FAFA8 #A86FAF
tetradic
#AFA86F #6FAF88 #6F76AF #AF6F96
square
#AFA86F #6FAF88 #6F76AF #AF6F96
split-complementary
#AFA86F #6F96AF #886FAF
monochromatic
#69643A #918950 #AFA86F #C5C096 #DBD8BE
Accessibility & contrast
On white
2.43
#AFA86F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.65
#AFA86F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA86F
8.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA86F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA86F | 1.00 | 2.43 | 8.65 | 8.65 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B2A46B
Deuteranopia (green-blind)
#B4A871
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afa86f; /* rgb */ color: rgb(175, 168, 111); /* oklch */ color: oklch(72.4% 0.077 102.1);
Tailwind
colors: {
custom: {
50: '#c8c199',
500: '#afa86f',
950: '#000000',
},
}SCSS
$custom: #afa86f; $custom-light: #c8c199; $custom-dark: #000000;
JSON
{
"hex": "#afa86f",
"rgb": {
"r": 175,
"g": 168,
"b": 111
},
"hsl": {
"h": 53.438,
"s": 28.571,
"l": 56.078
},
"oklch": {
"l": 0.72386,
"c": 0.07662,
"h": 102.1
},
"luminance": 0.38267
}Semantic roles & 50–950 ramp
primary
#AFA86F
secondary
#B0B3CA
accent
#6EC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E