#AFA772#AFA772
#AFA772 is a light, moderate yellow. Relative luminance 0.380; OKLCH L 72.2% C 0.072 H 100.7°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA772 |
|---|---|
| RGB | rgb(175, 167, 114) |
| HSL | hsl(52, 28%, 57%) |
| HSV | hsv(52, 35%, 69%) |
| CMYK | cmyk(0%, 4.6%, 34.9%, 31.4%) |
| CIE-LAB | lab(68.00, -5.26, 28.49) |
| CIE-LCH | lch(68.00, 28.97, 100.47°) |
| OKLab | oklab(72.23% -0.0133 0.0706) |
| OKLCH | oklch(72.23% 0.072 100.7) |
| XYZ | xyz(34.5356, 37.9672, 21.4255) |
| Luminance | 0.3797 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.48
Sand
#C2B280
ΔE00 4.69
Darkkhaki
#BDB76B
ΔE00 6.12
Stone (survey)
#ADA587
ΔE00 6.20
Putty
#BEAE8A
ΔE00 6.47
Bland
#AFA88B
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA772 #727AAF
analogous
#AF8972 #AFA772 #99AF72
triadic
#AFA772 #72AFA7 #A772AF
tetradic
#AFA772 #72AF89 #727AAF #AF7299
square
#AFA772 #72AF89 #727AAF #AF7299
split-complementary
#AFA772 #7299AF #8972AF
monochromatic
#6A643C #918952 #AFA772 #C5BF99 #DBD8C0
Accessibility & contrast
On white
2.44
#AFA772 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.59
#AFA772 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA772
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA772 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA772 | 1.00 | 2.44 | 8.59 | 8.59 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B1A46E
Deuteranopia (green-blind)
#B3A774
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #afa772; /* rgb */ color: rgb(175, 167, 114); /* oklch */ color: oklch(72.2% 0.072 100.7);
Tailwind
colors: {
custom: {
50: '#c8c19b',
500: '#afa772',
950: '#000000',
},
}SCSS
$custom: #afa772; $custom-light: #c8c19b; $custom-dark: #000000;
JSON
{
"hex": "#afa772",
"rgb": {
"r": 175,
"g": 167,
"b": 114
},
"hsl": {
"h": 52.131,
"s": 27.602,
"l": 56.667
},
"oklch": {
"l": 0.72228,
"c": 0.07187,
"h": 100.7
},
"luminance": 0.37966
}Semantic roles & 50–950 ramp
primary
#AFA772
secondary
#B2B5CB
accent
#70C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E