#AF9822#AF9822
#AF9822 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.131 H 97.3°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9822 |
|---|---|
| RGB | rgb(175, 152, 34) |
| HSL | hsl(50, 67%, 41%) |
| HSV | hsv(50, 81%, 69%) |
| CMYK | cmyk(0%, 13.1%, 80.6%, 31.4%) |
| CIE-LAB | lab(63.08, -3.51, 59.86) |
| CIE-LCH | lch(63.08, 59.96, 93.35°) |
| OKLab | oklab(68.06% -0.0166 0.1296) |
| OKLCH | oklch(68.06% 0.131 97.3) |
| XYZ | xyz(29.1977, 31.6875, 6.0915) |
| Luminance | 0.3169 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 1.88
Baby Poo
#AB9004
ΔE00 2.82
Baby Shit Brown
#AD900D
ΔE00 2.92
Dark Gold
#B59410
ΔE00 3.09
Yellow Brown
#B79400
ΔE00 3.74
Ocher
#BF9B0C
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9822 #2239AF
analogous
#AF5122 #AF9822 #7FAF22
triadic
#AF9822 #22AF98 #9822AF
tetradic
#AF9822 #22AF51 #2239AF #AF227F
square
#AF9822 #22AF51 #2239AF #AF227F
split-complementary
#AF9822 #227FAF #5122AF
monochromatic
#493F0E #7C6B18 #AF9822 #D8BE36 #E2CE69
Accessibility & contrast
On white
2.86
#AF9822 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.34
#AF9822 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9822
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9822 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9822 | 1.00 | 2.86 | 7.34 | 7.34 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AE9C2B
Tritanopia (blue-blind)
#BD8C82
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af9822; /* rgb */ color: rgb(175, 152, 34); /* oklch */ color: oklch(68.1% 0.131 97.3);
Tailwind
colors: {
custom: {
50: '#cbb568',
500: '#af9822',
950: '#000000',
},
}SCSS
$custom: #af9822; $custom-light: #cbb568; $custom-dark: #000000;
JSON
{
"hex": "#af9822",
"rgb": {
"r": 175,
"g": 152,
"b": 34
},
"hsl": {
"h": 50.213,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.6806,
"c": 0.13063,
"h": 97.3
},
"luminance": 0.31686
}Semantic roles & 50–950 ramp
primary
#AF9822
secondary
#6575C8
accent
#5AEA3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A