#AFA057#AFA057
#AFA057 is a light, moderate yellow. Relative luminance 0.349; OKLCH L 70.3% C 0.096 H 98.0°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA057 |
|---|---|
| RGB | rgb(175, 160, 87) |
| HSL | hsl(50, 35%, 51%) |
| HSV | hsv(50, 50%, 69%) |
| CMYK | cmyk(0%, 8.6%, 50.3%, 31.4%) |
| CIE-LAB | lab(65.71, -4.45, 39.74) |
| CIE-LCH | lch(65.71, 39.99, 96.39°) |
| OKLab | oklab(70.28% -0.0133 0.0947) |
| OKLCH | oklch(70.28% 0.096 98) |
| XYZ | xyz(31.9713, 34.9449, 14.0759) |
| Luminance | 0.3494 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.82
Sandy Brown
#C4A661
ΔE00 5.64
Dark Khaki
#9B8F55
ΔE00 6.19
Darkkhaki
#BDB76B
ΔE00 6.71
Desert
#CCAD60
ΔE00 6.75
Dark Sand
#A88F59
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA057 #5766AF
analogous
#AF7457 #AFA057 #92AF57
triadic
#AFA057 #57AFA0 #A057AF
tetradic
#AFA057 #57AF74 #5766AF #AF5792
square
#AFA057 #57AF74 #5766AF #AF5792
split-complementary
#AFA057 #5792AF #7457AF
monochromatic
#5F562D #887C41 #AFA057 #C3B780 #D6CFAA
Accessibility & contrast
On white
2.63
#AFA057 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.99
#AFA057 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA057
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA057 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA057 | 1.00 | 2.63 | 7.99 | 7.99 |
| #FFFFFF | 2.63 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9D51
Deuteranopia (green-blind)
#B1A25A
Tritanopia (blue-blind)
#BB978F
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #afa057; /* rgb */ color: rgb(175, 160, 87); /* oklch */ color: oklch(70.3% 0.096 98.0);
Tailwind
colors: {
custom: {
50: '#c9bb88',
500: '#afa057',
950: '#000000',
},
}SCSS
$custom: #afa057; $custom-light: #c9bb88; $custom-dark: #000000;
JSON
{
"hex": "#afa057",
"rgb": {
"r": 175,
"g": 160,
"b": 87
},
"hsl": {
"h": 49.773,
"s": 35.484,
"l": 51.373
},
"oklch": {
"l": 0.70284,
"c": 0.09558,
"h": 98
},
"luminance": 0.34944
}Semantic roles & 50–950 ramp
primary
#AFA057
secondary
#9EA4C4
accent
#6FCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13110B
muted
#82807C