#AFA261#AFA261
#AFA261 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.087 H 98.3°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA261 |
|---|---|
| RGB | rgb(175, 162, 97) |
| HSL | hsl(50, 33%, 53%) |
| HSV | hsv(50, 45%, 69%) |
| CMYK | cmyk(0%, 7.4%, 44.6%, 31.4%) |
| CIE-LAB | lab(66.38, -4.53, 35.42) |
| CIE-LCH | lch(66.38, 35.71, 97.29°) |
| OKLab | oklab(70.86% -0.0125 0.0857) |
| OKLCH | oklch(70.86% 0.087 98.3) |
| XYZ | xyz(32.7580, 35.8188, 16.4951) |
| Luminance | 0.3582 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 2.98
Sandy Brown
#C4A661
ΔE00 5.79
Dark Khaki
#9B8F55
ΔE00 6.18
Sand
#C2B280
ΔE00 6.19
Darkkhaki
#BDB76B
ΔE00 6.21
Sandstone
#C9AE74
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA261 #616EAF
analogous
#AF7B61 #AFA261 #95AF61
triadic
#AFA261 #61AFA2 #A261AF
tetradic
#AFA261 #61AF7B #616EAF #AF6195
square
#AFA261 #61AF7B #616EAF #AF6195
split-complementary
#AFA261 #6195AF #7B61AF
monochromatic
#635B32 #8C8047 #AFA261 #C4BA8A #D8D2B2
Accessibility & contrast
On white
2.57
#AFA261 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.16
#AFA261 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA261
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA261 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA261 | 1.00 | 2.57 | 8.16 | 8.16 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AE9F5C
Deuteranopia (green-blind)
#B1A364
Tritanopia (blue-blind)
#BA9992
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa261; /* rgb */ color: rgb(175, 162, 97); /* oklch */ color: oklch(70.9% 0.087 98.3);
Tailwind
colors: {
custom: {
50: '#c8bd8f',
500: '#afa261',
950: '#000000',
},
}SCSS
$custom: #afa261; $custom-light: #c8bd8f; $custom-dark: #000000;
JSON
{
"hex": "#afa261",
"rgb": {
"r": 175,
"g": 162,
"b": 97
},
"hsl": {
"h": 50,
"s": 32.773,
"l": 53.333
},
"oklch": {
"l": 0.70863,
"c": 0.08664,
"h": 98.3
},
"luminance": 0.35818
}Semantic roles & 50–950 ramp
primary
#AFA261
secondary
#A5ABC7
accent
#71C95F
background
#FCFBF8
surface
#F8F6F0
border
#D1D0CB
text
#13120C
muted
#82817D