#AFA652#AFA652
#AFA652 is a light, moderate yellow. Relative luminance 0.370; OKLCH L 71.5% C 0.107 H 103.2°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA652 |
|---|---|
| RGB | rgb(175, 166, 82) |
| HSL | hsl(54, 37%, 50%) |
| HSV | hsv(54, 53%, 69%) |
| CMYK | cmyk(0%, 5.1%, 53.1%, 31.4%) |
| CIE-LAB | lab(67.27, -8.09, 44.11) |
| CIE-LCH | lch(67.27, 44.85, 100.39°) |
| OKLab | oklab(71.51% -0.0243 0.1038) |
| OKLCH | oklch(71.51% 0.107 103.2) |
| XYZ | xyz(32.8394, 36.9967, 13.3922) |
| Luminance | 0.3700 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.29
Darkkhaki
#BDB76B
ΔE00 5.09
Vomit
#A2A415
ΔE00 6.74
Puke
#A5A502
ΔE00 7.22
Sandy Brown
#C4A661
ΔE00 7.47
Desert
#CCAD60
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA652 #525BAF
analogous
#AF7852 #AFA652 #89AF52
triadic
#AFA652 #52AFA6 #A652AF
tetradic
#AFA652 #52AF78 #525BAF #AF5289
square
#AFA652 #52AF78 #525BAF #AF5289
split-complementary
#AFA652 #5289AF #7852AF
monochromatic
#5C572B #867F3E #AFA652 #C2BC7C #D6D1A6
Accessibility & contrast
On white
2.50
#AFA652 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.40
#AFA652 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA652
8.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA652 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA652 | 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)
#B3A14A
Deuteranopia (green-blind)
#B6A656
Tritanopia (blue-blind)
#BA9C93
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #afa652; /* rgb */ color: rgb(175, 166, 82); /* oklch */ color: oklch(71.5% 0.107 103.2);
Tailwind
colors: {
custom: {
50: '#c9c085',
500: '#afa652',
950: '#000000',
},
}SCSS
$custom: #afa652; $custom-light: #c9c085; $custom-dark: #000000;
JSON
{
"hex": "#afa652",
"rgb": {
"r": 175,
"g": 166,
"b": 82
},
"hsl": {
"h": 54.194,
"s": 36.759,
"l": 50.392
},
"oklch": {
"l": 0.71509,
"c": 0.10656,
"h": 103.2
},
"luminance": 0.36996
}Semantic roles & 50–950 ramp
primary
#AFA652
secondary
#9A9EC3
accent
#66CD5B
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C