#AF9922#AF9922
#AF9922 is a light, vivid yellow. Relative luminance 0.320; OKLCH L 68.3% C 0.131 H 97.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9922 |
|---|---|
| RGB | rgb(175, 153, 34) |
| HSL | hsl(51, 67%, 41%) |
| HSV | hsv(51, 81%, 69%) |
| CMYK | cmyk(0%, 12.6%, 80.6%, 31.4%) |
| CIE-LAB | lab(63.35, -4.05, 60.10) |
| CIE-LCH | lch(63.35, 60.23, 93.85°) |
| OKLab | oklab(68.27% -0.0181 0.1301) |
| OKLCH | oklch(68.27% 0.131 97.9) |
| XYZ | xyz(29.3607, 32.0135, 6.1458) |
| Luminance | 0.3201 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.04
Baby Poo
#AB9004
ΔE00 3.14
Baby Shit Brown
#AD900D
ΔE00 3.29
Dark Gold
#B59410
ΔE00 3.42
Yellow Brown
#B79400
ΔE00 4.04
Ocher
#BF9B0C
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9922 #2238AF
analogous
#AF5222 #AF9922 #7EAF22
triadic
#AF9922 #22AF99 #9922AF
tetradic
#AF9922 #22AF52 #2238AF #AF227E
square
#AF9922 #22AF52 #2238AF #AF227E
split-complementary
#AF9922 #227EAF #5222AF
monochromatic
#493F0E #7C6C18 #AF9922 #D8BF36 #E2CF69
Accessibility & contrast
On white
2.84
#AF9922 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.40
#AF9922 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9922
7.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9922 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9922 | 1.00 | 2.84 | 7.40 | 7.40 |
| #FFFFFF | 2.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A99500
Deuteranopia (green-blind)
#AF9D2B
Tritanopia (blue-blind)
#BD8D83
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af9922; /* rgb */ color: rgb(175, 153, 34); /* oklch */ color: oklch(68.3% 0.131 97.9);
Tailwind
colors: {
custom: {
50: '#cbb668',
500: '#af9922',
950: '#000000',
},
}SCSS
$custom: #af9922; $custom-light: #cbb668; $custom-dark: #000000;
JSON
{
"hex": "#af9922",
"rgb": {
"r": 175,
"g": 153,
"b": 34
},
"hsl": {
"h": 50.638,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.68274,
"c": 0.13134,
"h": 97.9
},
"luminance": 0.32012
}Semantic roles & 50–950 ramp
primary
#AF9922
secondary
#6574C8
accent
#58EA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A