#AFA96F#AFA96F
#AFA96F is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.6% C 0.078 H 103.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA96F |
|---|---|
| RGB | rgb(175, 169, 111) |
| HSL | hsl(54, 29%, 56%) |
| HSV | hsv(54, 37%, 69%) |
| CMYK | cmyk(0%, 3.4%, 36.6%, 31.4%) |
| CIE-LAB | lab(68.49, -6.69, 30.74) |
| CIE-LCH | lch(68.49, 31.46, 102.28°) |
| OKLab | oklab(72.6% -0.0176 0.0757) |
| OKLCH | oklch(72.6% 0.078 103.1) |
| XYZ | xyz(34.7369, 38.6384, 20.6639) |
| Luminance | 0.3864 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.43
Darkkhaki
#BDB76B
ΔE00 5.04
Sand
#C2B280
ΔE00 5.17
Stone (survey)
#ADA587
ΔE00 7.39
Sandstone
#C9AE74
ΔE00 7.43
Putty
#BEAE8A
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA96F #6F75AF
analogous
#AF896F #AFA96F #95AF6F
triadic
#AFA96F #6FAFA9 #A96FAF
tetradic
#AFA96F #6FAF89 #6F75AF #AF6F95
square
#AFA96F #6FAF89 #6F75AF #AF6F95
split-complementary
#AFA96F #6F95AF #896FAF
monochromatic
#69653A #918A50 #AFA96F #C5C096 #DBD8BE
Accessibility & contrast
On white
2.41
#AFA96F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.73
#AFA96F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA96F
8.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA96F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA96F | 1.00 | 2.41 | 8.73 | 8.73 |
| #FFFFFF | 2.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B3A56B
Deuteranopia (green-blind)
#B5A971
Tritanopia (blue-blind)
#B8A29A
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afa96f; /* rgb */ color: rgb(175, 169, 111); /* oklch */ color: oklch(72.6% 0.078 103.1);
Tailwind
colors: {
custom: {
50: '#c8c299',
500: '#afa96f',
950: '#000000',
},
}SCSS
$custom: #afa96f; $custom-light: #c8c299; $custom-dark: #000000;
JSON
{
"hex": "#afa96f",
"rgb": {
"r": 175,
"g": 169,
"b": 111
},
"hsl": {
"h": 54.375,
"s": 28.571,
"l": 56.078
},
"oklch": {
"l": 0.72601,
"c": 0.07776,
"h": 103.1
},
"luminance": 0.38638
}Semantic roles & 50–950 ramp
primary
#AFA96F
secondary
#B0B2CA
accent
#6CC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E