#AF9931#AF9931
#AF9931 is a light, vivid yellow. Relative luminance 0.321; OKLCH L 68.4% C 0.123 H 96.9°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9931 |
|---|---|
| RGB | rgb(175, 153, 49) |
| HSL | hsl(50, 56%, 44%) |
| HSV | hsv(50, 72%, 69%) |
| CMYK | cmyk(0%, 12.6%, 72%, 31.4%) |
| CIE-LAB | lab(63.44, -3.41, 54.82) |
| CIE-LCH | lch(63.44, 54.93, 93.56°) |
| OKLab | oklab(68.37% -0.0148 0.1218) |
| OKLCH | oklch(68.37% 0.123 96.9) |
| XYZ | xyz(29.6263, 32.1197, 7.5444) |
| Luminance | 0.3212 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.22
Baby Shit Brown
#AD900D
ΔE00 3.79
Baby Poo
#AB9004
ΔE00 3.84
Dark Gold
#B59410
ΔE00 3.92
Yellow Brown
#B79400
ΔE00 4.64
Ocher
#BF9B0C
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9931 #3147AF
analogous
#AF5A31 #AF9931 #86AF31
triadic
#AF9931 #31AF99 #9931AF
tetradic
#AF9931 #31AF5A #3147AF #AF3186
square
#AF9931 #31AF5A #3147AF #AF3186
split-complementary
#AF9931 #3186AF #5A31AF
monochromatic
#4F4516 #7F6F24 #AF9931 #CEB84F #DBCB7F
Accessibility & contrast
On white
2.83
#AF9931 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.42
#AF9931 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9931
7.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9931 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9931 | 1.00 | 2.83 | 7.42 | 7.42 |
| #FFFFFF | 2.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A99521
Deuteranopia (green-blind)
#AE9D37
Tritanopia (blue-blind)
#BD8D84
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #af9931; /* rgb */ color: rgb(175, 153, 49); /* oklch */ color: oklch(68.4% 0.123 96.9);
Tailwind
colors: {
custom: {
50: '#cab670',
500: '#af9931',
950: '#000000',
},
}SCSS
$custom: #af9931; $custom-light: #cab670; $custom-dark: #000000;
JSON
{
"hex": "#af9931",
"rgb": {
"r": 175,
"g": 153,
"b": 49
},
"hsl": {
"h": 49.524,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.68372,
"c": 0.12272,
"h": 96.9
},
"luminance": 0.32118
}Semantic roles & 50–950 ramp
primary
#AF9931
secondary
#7885C4
accent
#63E048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B