#AFA754#AFA754
#AFA754 is a light, moderate yellow. Relative luminance 0.374; OKLCH L 71.8% C 0.106 H 103.8°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA754 |
|---|---|
| RGB | rgb(175, 167, 84) |
| HSL | hsl(55, 36%, 51%) |
| HSV | hsv(55, 52%, 69%) |
| CMYK | cmyk(0%, 4.6%, 52%, 31.4%) |
| CIE-LAB | lab(67.57, -8.44, 43.48) |
| CIE-LCH | lch(67.57, 44.29, 100.99°) |
| OKLab | oklab(71.75% -0.0251 0.1026) |
| OKLCH | oklch(71.75% 0.106 103.8) |
| XYZ | xyz(33.0991, 37.3925, 13.8597) |
| Luminance | 0.3739 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.01
Darkkhaki
#BDB76B
ΔE00 4.75
Vomit
#A2A415
ΔE00 6.87
Puke
#A5A502
ΔE00 7.37
Sandy Brown
#C4A661
ΔE00 7.64
Desert
#CCAD60
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA754 #545CAF
analogous
#AF7954 #AFA754 #89AF54
triadic
#AFA754 #54AFA7 #A754AF
tetradic
#AFA754 #54AF79 #545CAF #AF5489
square
#AFA754 #54AF79 #545CAF #AF5489
split-complementary
#AFA754 #5489AF #7954AF
monochromatic
#5D592C #87803F #AFA754 #C3BC7E #D6D2A7
Accessibility & contrast
On white
2.48
#AFA754 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.48
#AFA754 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA754
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA754 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA754 | 1.00 | 2.48 | 8.48 | 8.48 |
| #FFFFFF | 2.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A24C
Deuteranopia (green-blind)
#B6A758
Tritanopia (blue-blind)
#BA9D94
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #afa754; /* rgb */ color: rgb(175, 167, 84); /* oklch */ color: oklch(71.8% 0.106 103.8);
Tailwind
colors: {
custom: {
50: '#c9c086',
500: '#afa754',
950: '#000000',
},
}SCSS
$custom: #afa754; $custom-light: #c9c086; $custom-dark: #000000;
JSON
{
"hex": "#afa754",
"rgb": {
"r": 175,
"g": 167,
"b": 84
},
"hsl": {
"h": 54.725,
"s": 36.255,
"l": 50.784
},
"oklch": {
"l": 0.71751,
"c": 0.1056,
"h": 103.8
},
"luminance": 0.37391
}Semantic roles & 50–950 ramp
primary
#AFA754
secondary
#9B9FC4
accent
#65CC5C
background
#FCFBF8
surface
#F9F7EF
border
#D2D0CA
text
#13120B
muted
#82817C