#AFA566#AFA566
#AFA566 is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.6% C 0.084 H 100.4°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA566 |
|---|---|
| RGB | rgb(175, 165, 102) |
| HSL | hsl(52, 31%, 54%) |
| HSV | hsv(52, 42%, 69%) |
| CMYK | cmyk(0%, 5.7%, 41.7%, 31.4%) |
| CIE-LAB | lab(67.27, -5.60, 33.92) |
| CIE-LCH | lch(67.27, 34.38, 99.37°) |
| OKLab | oklab(71.59% -0.0151 0.0826) |
| OKLCH | oklch(71.59% 0.084 100.4) |
| XYZ | xyz(33.5333, 36.9845, 17.9401) |
| Luminance | 0.3698 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.12
Darkkhaki
#BDB76B
ΔE00 5.42
Sand
#C2B280
ΔE00 5.67
Sandy Brown
#C4A661
ΔE00 6.52
Sandstone
#C9AE74
ΔE00 6.88
Dark Khaki
#9B8F55
ΔE00 6.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA566 #6670AF
analogous
#AF8166 #AFA566 #95AF66
triadic
#AFA566 #66AFA5 #A566AF
tetradic
#AFA566 #66AF81 #6670AF #AF6695
square
#AFA566 #66AF81 #6670AF #AF6695
split-complementary
#AFA566 #6695AF #8166AF
monochromatic
#665F35 #8E844A #AFA566 #C4BD8E #D9D4B6
Accessibility & contrast
On white
2.50
#AFA566 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.40
#AFA566 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA566
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA566 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA566 | 1.00 | 2.50 | 8.40 | 8.40 |
| #FFFFFF | 2.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B0A161
Deuteranopia (green-blind)
#B3A668
Tritanopia (blue-blind)
#B99D95
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa566; /* rgb */ color: rgb(175, 165, 102); /* oklch */ color: oklch(71.6% 0.084 100.4);
Tailwind
colors: {
custom: {
50: '#c8bf92',
500: '#afa566',
950: '#000000',
},
}SCSS
$custom: #afa566; $custom-light: #c8bf92; $custom-dark: #000000;
JSON
{
"hex": "#afa566",
"rgb": {
"r": 175,
"g": 165,
"b": 102
},
"hsl": {
"h": 51.781,
"s": 31.33,
"l": 54.314
},
"oklch": {
"l": 0.71587,
"c": 0.08399,
"h": 100.4
},
"luminance": 0.36984
}Semantic roles & 50–950 ramp
primary
#AFA566
secondary
#A9ADC8
accent
#6EC860
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E