#AFAA71#AFAA71
#AFAA71 is a light, moderate yellow. Relative luminance 0.391; OKLCH L 72.9% C 0.076 H 103.8°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAA71 |
|---|---|
| RGB | rgb(175, 170, 113) |
| HSL | hsl(55, 28%, 56%) |
| HSV | hsv(55, 35%, 69%) |
| CMYK | cmyk(0%, 2.9%, 35.4%, 31.4%) |
| CIE-LAB | lab(68.79, -6.98, 30.07) |
| CIE-LCH | lch(68.79, 30.87, 103.07°) |
| OKLab | oklab(72.85% -0.0183 0.0743) |
| OKLCH | oklch(72.85% 0.076 103.8) |
| XYZ | xyz(35.0350, 39.0565, 21.3127) |
| Luminance | 0.3906 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.70
Darkkhaki
#BDB76B
ΔE00 5.04
Sand
#C2B280
ΔE00 5.17
Stone (survey)
#ADA587
ΔE00 7.28
Putty
#BEAE8A
ΔE00 7.45
Bland
#AFA88B
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAA71 #7176AF
analogous
#AF8B71 #AFAA71 #95AF71
triadic
#AFAA71 #71AFAA #AA71AF
tetradic
#AFAA71 #71AF8B #7176AF #AF7195
square
#AFAA71 #71AF8B #7176AF #AF7195
split-complementary
#AFAA71 #7195AF #8B71AF
monochromatic
#6A663C #918C52 #AFAA71 #C5C198 #DBD9BF
Accessibility & contrast
On white
2.38
#AFAA71 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.81
#AFAA71 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAA71
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAA71 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAA71 | 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)
#B4A66D
Deuteranopia (green-blind)
#B6A973
Tritanopia (blue-blind)
#B8A39C
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #afaa71; /* rgb */ color: rgb(175, 170, 113); /* oklch */ color: oklch(72.9% 0.076 103.8);
Tailwind
colors: {
custom: {
50: '#c8c39a',
500: '#afaa71',
950: '#000000',
},
}SCSS
$custom: #afaa71; $custom-light: #c8c39a; $custom-dark: #000000;
JSON
{
"hex": "#afaa71",
"rgb": {
"r": 175,
"g": 170,
"b": 113
},
"hsl": {
"h": 55.161,
"s": 27.928,
"l": 56.471
},
"oklch": {
"l": 0.72852,
"c": 0.07649,
"h": 103.8
},
"luminance": 0.39056
}Semantic roles & 50–950 ramp
primary
#AFAA71
secondary
#B1B3CB
accent
#6BC464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E