#AFA25B#AFA25B
#AFA25B is a light, moderate yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.093 H 99.2°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA25B |
|---|---|
| RGB | rgb(175, 162, 91) |
| HSL | hsl(51, 34%, 52%) |
| HSV | hsv(51, 48%, 69%) |
| CMYK | cmyk(0%, 7.4%, 48%, 31.4%) |
| CIE-LAB | lab(66.30, -5.14, 38.42) |
| CIE-LCH | lch(66.30, 38.77, 97.62°) |
| OKLab | oklab(70.77% -0.0148 0.092) |
| OKLCH | oklch(70.77% 0.093 99.2) |
| XYZ | xyz(32.4888, 35.7111, 15.0771) |
| Luminance | 0.3571 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.99
Sandy Brown
#C4A661
ΔE00 5.91
Darkkhaki
#BDB76B
ΔE00 6.03
Dark Khaki
#9B8F55
ΔE00 6.45
Desert
#CCAD60
ΔE00 6.91
Sand
#C2B280
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA25B #5B68AF
analogous
#AF785B #AFA25B #92AF5B
triadic
#AFA25B #5BAFA2 #A25BAF
tetradic
#AFA25B #5BAF78 #5B68AF #AF5B92
square
#AFA25B #5BAF78 #5B68AF #AF5B92
split-complementary
#AFA25B #5B92AF #785BAF
monochromatic
#61592F #8A7F43 #AFA25B #C3B984 #D7D1AD
Accessibility & contrast
On white
2.58
#AFA25B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.14
#AFA25B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA25B
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA25B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA25B | 1.00 | 2.58 | 8.14 | 8.14 |
| #FFFFFF | 2.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9E55
Deuteranopia (green-blind)
#B2A35E
Tritanopia (blue-blind)
#BA9991
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa25b; /* rgb */ color: rgb(175, 162, 91); /* oklch */ color: oklch(70.8% 0.093 99.2);
Tailwind
colors: {
custom: {
50: '#c8bd8b',
500: '#afa25b',
950: '#000000',
},
}SCSS
$custom: #afa25b; $custom-light: #c8bd8b; $custom-dark: #000000;
JSON
{
"hex": "#afa25b",
"rgb": {
"r": 175,
"g": 162,
"b": 91
},
"hsl": {
"h": 50.714,
"s": 34.426,
"l": 52.157
},
"oklch": {
"l": 0.70771,
"c": 0.09323,
"h": 99.2
},
"luminance": 0.3571
}Semantic roles & 50–950 ramp
primary
#AFA25B
secondary
#A1A6C5
accent
#6ECB5D
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D