#AFA56F#AFA56F
#AFA56F is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.073 H 99.0°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA56F |
|---|---|
| RGB | rgb(175, 165, 111) |
| HSL | hsl(51, 29%, 56%) |
| HSV | hsv(51, 37%, 69%) |
| CMYK | cmyk(0%, 5.7%, 36.6%, 31.4%) |
| CIE-LAB | lab(67.41, -4.56, 29.33) |
| CIE-LCH | lch(67.41, 29.68, 98.84°) |
| OKLab | oklab(71.74% -0.0114 0.0725) |
| OKLCH | oklch(71.74% 0.073 99) |
| XYZ | xyz(34.0041, 37.1729, 20.4197) |
| Luminance | 0.3717 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.51
Sand
#C2B280
ΔE00 4.78
Stone (survey)
#ADA587
ΔE00 6.38
Darkkhaki
#BDB76B
ΔE00 6.40
Putty
#BEAE8A
ΔE00 6.49
Sandstone
#C9AE74
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA56F #6F79AF
analogous
#AF856F #AFA56F #99AF6F
triadic
#AFA56F #6FAFA5 #A56FAF
tetradic
#AFA56F #6FAF85 #6F79AF #AF6F99
square
#AFA56F #6FAF85 #6F79AF #AF6F99
split-complementary
#AFA56F #6F99AF #856FAF
monochromatic
#69623A #918650 #AFA56F #C5BE96 #DBD6BE
Accessibility & contrast
On white
2.49
#AFA56F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.43
#AFA56F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA56F
8.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA56F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA56F | 1.00 | 2.49 | 8.43 | 8.43 |
| #FFFFFF | 2.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AFA26B
Deuteranopia (green-blind)
#B2A671
Tritanopia (blue-blind)
#B89E97
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa56f; /* rgb */ color: rgb(175, 165, 111); /* oklch */ color: oklch(71.7% 0.073 99.0);
Tailwind
colors: {
custom: {
50: '#c8bf99',
500: '#afa56f',
950: '#000000',
},
}SCSS
$custom: #afa56f; $custom-light: #c8bf99; $custom-dark: #000000;
JSON
{
"hex": "#afa56f",
"rgb": {
"r": 175,
"g": 165,
"b": 111
},
"hsl": {
"h": 50.625,
"s": 28.571,
"l": 56.078
},
"oklch": {
"l": 0.71744,
"c": 0.07337,
"h": 99
},
"luminance": 0.37172
}Semantic roles & 50–950 ramp
primary
#AFA56F
secondary
#B0B4CA
accent
#72C563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E