#AFA15B#AFA15B
#AFA15B is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.092 H 98.3°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA15B |
|---|---|
| RGB | rgb(175, 161, 91) |
| HSL | hsl(50, 34%, 52%) |
| HSV | hsv(50, 48%, 69%) |
| CMYK | cmyk(0%, 8%, 48%, 31.4%) |
| CIE-LAB | lab(66.03, -4.60, 38.09) |
| CIE-LCH | lch(66.03, 38.37, 96.89°) |
| OKLab | oklab(70.56% -0.0133 0.0913) |
| OKLCH | oklch(70.56% 0.092 98.3) |
| XYZ | xyz(32.3133, 35.3602, 15.0186) |
| Luminance | 0.3536 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.33
Sandy Brown
#C4A661
ΔE00 5.69
Dark Khaki
#9B8F55
ΔE00 6.18
Darkkhaki
#BDB76B
ΔE00 6.39
Desert
#CCAD60
ΔE00 6.82
Sand
#C2B280
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA15B #5B69AF
analogous
#AF775B #AFA15B #93AF5B
triadic
#AFA15B #5BAFA1 #A15BAF
tetradic
#AFA15B #5BAF77 #5B69AF #AF5B93
square
#AFA15B #5BAF77 #5B69AF #AF5B93
split-complementary
#AFA15B #5B93AF #775BAF
monochromatic
#61582F #8A7E43 #AFA15B #C3B984 #D7D0AD
Accessibility & contrast
On white
2.60
#AFA15B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.07
#AFA15B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA15B
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA15B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA15B | 1.00 | 2.60 | 8.07 | 8.07 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AD9E55
Deuteranopia (green-blind)
#B1A35E
Tritanopia (blue-blind)
#BA9890
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #afa15b; /* rgb */ color: rgb(175, 161, 91); /* oklch */ color: oklch(70.6% 0.092 98.3);
Tailwind
colors: {
custom: {
50: '#c8bc8b',
500: '#afa15b',
950: '#000000',
},
}SCSS
$custom: #afa15b; $custom-light: #c8bc8b; $custom-dark: #000000;
JSON
{
"hex": "#afa15b",
"rgb": {
"r": 175,
"g": 161,
"b": 91
},
"hsl": {
"h": 50,
"s": 34.426,
"l": 52.157
},
"oklch": {
"l": 0.70557,
"c": 0.09227,
"h": 98.3
},
"luminance": 0.35359
}Semantic roles & 50–950 ramp
primary
#AFA15B
secondary
#A1A7C5
accent
#6FCB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D