#AFA75B#AFA75B
#AFA75B is a light, moderate yellow. Relative luminance 0.375; OKLCH L 71.8% C 0.098 H 103.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA75B |
|---|---|
| RGB | rgb(175, 167, 91) |
| HSL | hsl(54, 34%, 52%) |
| HSV | hsv(54, 48%, 69%) |
| CMYK | cmyk(0%, 4.6%, 48%, 31.4%) |
| CIE-LAB | lab(67.66, -7.80, 40.08) |
| CIE-LCH | lch(67.66, 40.84, 101.01°) |
| OKLab | oklab(71.85% -0.0225 0.0957) |
| OKLCH | oklch(71.85% 0.098 103.2) |
| XYZ | xyz(33.3871, 37.5077, 15.3765) |
| Luminance | 0.3751 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.01
Darkkhaki
#BDB76B
ΔE00 4.48
Sandy Brown
#C4A661
ΔE00 7.29
Sand
#C2B280
ΔE00 7.30
Desert
#CCAD60
ΔE00 7.70
Dark Khaki
#9B8F55
ΔE00 7.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA75B #5B63AF
analogous
#AF7D5B #AFA75B #8DAF5B
triadic
#AFA75B #5BAFA7 #A75BAF
tetradic
#AFA75B #5BAF7D #5B63AF #AF5B8D
square
#AFA75B #5BAF7D #5B63AF #AF5B8D
split-complementary
#AFA75B #5B8DAF #7D5BAF
monochromatic
#615C2F #8A8343 #AFA75B #C3BD84 #D7D3AD
Accessibility & contrast
On white
2.47
#AFA75B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.50
#AFA75B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA75B
8.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA75B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA75B | 1.00 | 2.47 | 8.50 | 8.50 |
| #FFFFFF | 2.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B3A255
Deuteranopia (green-blind)
#B6A75E
Tritanopia (blue-blind)
#BA9E95
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #afa75b; /* rgb */ color: rgb(175, 167, 91); /* oklch */ color: oklch(71.8% 0.098 103.2);
Tailwind
colors: {
custom: {
50: '#c8c18b',
500: '#afa75b',
950: '#000000',
},
}SCSS
$custom: #afa75b; $custom-light: #c8c18b; $custom-dark: #000000;
JSON
{
"hex": "#afa75b",
"rgb": {
"r": 175,
"g": 167,
"b": 91
},
"hsl": {
"h": 54.286,
"s": 34.426,
"l": 52.157
},
"oklch": {
"l": 0.71847,
"c": 0.09833,
"h": 103.2
},
"luminance": 0.37507
}Semantic roles & 50–950 ramp
primary
#AFA75B
secondary
#A1A4C5
accent
#68CB5D
background
#FCFBF8
surface
#F8F7F0
border
#D1D0CB
text
#13120C
muted
#82817D