#AFA257#AFA257
#AFA257 is a light, moderate yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.097 H 99.7°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA257 |
|---|---|
| RGB | rgb(175, 162, 87) |
| HSL | hsl(51, 35%, 51%) |
| HSV | hsv(51, 50%, 69%) |
| CMYK | cmyk(0%, 7.4%, 50.3%, 31.4%) |
| CIE-LAB | lab(66.25, -5.52, 40.40) |
| CIE-LCH | lch(66.25, 40.77, 97.78°) |
| OKLab | oklab(70.71% -0.0164 0.0961) |
| OKLCH | oklch(70.71% 0.097 99.7) |
| XYZ | xyz(32.3208, 35.6439, 14.1924) |
| Luminance | 0.3564 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.23
Darkkhaki
#BDB76B
ΔE00 6.03
Sandy Brown
#C4A661
ΔE00 6.09
Dark Khaki
#9B8F55
ΔE00 6.71
Desert
#CCAD60
ΔE00 6.94
Sand
#C2B280
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA257 #5764AF
analogous
#AF7657 #AFA257 #90AF57
triadic
#AFA257 #57AFA2 #A257AF
tetradic
#AFA257 #57AF76 #5764AF #AF5790
square
#AFA257 #57AF76 #5764AF #AF5790
split-complementary
#AFA257 #5790AF #7657AF
monochromatic
#5F572D #887E41 #AFA257 #C3B980 #D6D0AA
Accessibility & contrast
On white
2.58
#AFA257 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.13
#AFA257 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA257
8.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA257 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA257 | 1.00 | 2.58 | 8.13 | 8.13 |
| #FFFFFF | 2.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9E50
Deuteranopia (green-blind)
#B2A35A
Tritanopia (blue-blind)
#BA9990
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa257; /* rgb */ color: rgb(175, 162, 87); /* oklch */ color: oklch(70.7% 0.097 99.7);
Tailwind
colors: {
custom: {
50: '#c9bd88',
500: '#afa257',
950: '#000000',
},
}SCSS
$custom: #afa257; $custom-light: #c9bd88; $custom-dark: #000000;
JSON
{
"hex": "#afa257",
"rgb": {
"r": 175,
"g": 162,
"b": 87
},
"hsl": {
"h": 51.136,
"s": 35.484,
"l": 51.373
},
"oklch": {
"l": 0.70713,
"c": 0.09747,
"h": 99.7
},
"luminance": 0.35643
}Semantic roles & 50–950 ramp
primary
#AFA257
secondary
#9EA3C4
accent
#6DCC5C
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120B
muted
#82817C