#AFA251#AFA251
#AFA251 is a light, moderate yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.104 H 100.3°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA251 |
|---|---|
| RGB | rgb(175, 162, 81) |
| HSL | hsl(52, 37%, 50%) |
| HSV | hsv(52, 54%, 69%) |
| CMYK | cmyk(0%, 7.4%, 53.7%, 31.4%) |
| CIE-LAB | lab(66.17, -6.05, 43.31) |
| CIE-LCH | lch(66.17, 43.73, 97.96°) |
| OKLab | oklab(70.63% -0.0186 0.1019) |
| OKLCH | oklch(70.63% 0.104 100.3) |
| XYZ | xyz(32.0858, 35.5499, 12.9547) |
| Luminance | 0.3555 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.80
Darkkhaki
#BDB76B
ΔE00 6.18
Sandy Brown
#C4A661
ΔE00 6.47
Desert
#CCAD60
ΔE00 7.08
Dark Khaki
#9B8F55
ΔE00 7.19
Vomit
#A2A415
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA251 #515EAF
analogous
#AF7351 #AFA251 #8DAF51
triadic
#AFA251 #51AFA2 #A251AF
tetradic
#AFA251 #51AF73 #515EAF #AF518D
square
#AFA251 #51AF73 #515EAF #AF518D
split-complementary
#AFA251 #518DAF #7351AF
monochromatic
#5C552A #857B3D #AFA251 #C2B87B #D6CFA5
Accessibility & contrast
On white
2.59
#AFA251 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.11
#AFA251 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA251
8.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA251 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA251 | 1.00 | 2.59 | 8.11 | 8.11 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9E49
Deuteranopia (green-blind)
#B3A355
Tritanopia (blue-blind)
#BB9890
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa251; /* rgb */ color: rgb(175, 162, 81); /* oklch */ color: oklch(70.6% 0.104 100.3);
Tailwind
colors: {
custom: {
50: '#c9bd84',
500: '#afa251',
950: '#000000',
},
}SCSS
$custom: #afa251; $custom-light: #c9bd84; $custom-dark: #000000;
JSON
{
"hex": "#afa251",
"rgb": {
"r": 175,
"g": 162,
"b": 81
},
"hsl": {
"h": 51.702,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.70632,
"c": 0.10359,
"h": 100.3
},
"luminance": 0.35549
}Semantic roles & 50–950 ramp
primary
#AFA251
secondary
#999FC3
accent
#6BCD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13120B
muted
#82817C