#A7A222#A7A222
#A7A222 is a light, vivid yellow. Relative luminance 0.342; OKLCH L 69.5% C 0.139 H 107.2°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).
Color values
| HEX | #A7A222 |
|---|---|
| RGB | rgb(167, 162, 34) |
| HSL | hsl(58, 66%, 39%) |
| HSV | hsv(58, 80%, 65%) |
| CMYK | cmyk(0%, 3%, 79.6%, 34.5%) |
| CIE-LAB | lab(65.10, -12.39, 61.37) |
| CIE-LCH | lch(65.10, 62.61, 101.42°) |
| OKLab | oklab(69.49% -0.0411 0.1332) |
| OKLCH | oklch(69.49% 0.139 107.2) |
| XYZ | xyz(29.1466, 34.1727, 6.5737) |
| Luminance | 0.3417 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.93
Puke
#A5A502
ΔE00 2.08
Pea Soup
#929901
ΔE00 4.71
Baby Poop Green
#8F9805
ΔE00 5.36
Pea Soup Green
#94A617
ΔE00 5.62
Muddy Yellow
#BFAC05
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7A222 #2227A7
analogous
#A75F22 #A7A222 #6AA722
triadic
#A7A222 #22A7A2 #A222A7
tetradic
#A7A222 #22A75F #2227A7 #A7226A
square
#A7A222 #22A75F #2227A7 #A7226A
split-complementary
#A7A222 #226AA7 #5F22A7
monochromatic
#413F0D #747118 #A7A222 #D5CF31 #DFDB64
Accessibility & contrast
On white
2.68
#A7A222 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.83
#A7A222 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A7A222
7.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7A222 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7A222 | 1.00 | 2.68 | 7.83 | 7.83 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B3A02D
Tritanopia (blue-blind)
#B4978B
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a7a222; /* rgb */ color: rgb(167, 162, 34); /* oklch */ color: oklch(69.5% 0.139 107.2);
Tailwind
colors: {
custom: {
50: '#c5bd69',
500: '#a7a222',
950: '#000000',
},
}SCSS
$custom: #a7a222; $custom-light: #c5bd69; $custom-dark: #000000;
JSON
{
"hex": "#a7a222",
"rgb": {
"r": 167,
"g": 162,
"b": 34
},
"hsl": {
"h": 57.744,
"s": 66.169,
"l": 39.412
},
"oklch": {
"l": 0.69489,
"c": 0.1394,
"h": 107.2
},
"luminance": 0.34172
}Semantic roles & 50–950 ramp
primary
#A7A222
secondary
#6064C5
accent
#45E93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A