#A5A222#A5A222
#A5A222 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.140 H 108.1°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).
Color values
| HEX | #A5A222 |
|---|---|
| RGB | rgb(165, 162, 34) |
| HSL | hsl(59, 66%, 39%) |
| HSV | hsv(59, 79%, 65%) |
| CMYK | cmyk(0%, 1.8%, 79.4%, 35.3%) |
| CIE-LAB | lab(64.93, -13.28, 61.15) |
| CIE-LCH | lch(64.93, 62.57, 102.25°) |
| OKLab | oklab(69.31% -0.0435 0.1328) |
| OKLCH | oklch(69.31% 0.14 108.1) |
| XYZ | xyz(28.7273, 33.9565, 6.5541) |
| Luminance | 0.3396 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.51
Puke
#A5A502
ΔE00 1.94
Pea Soup
#929901
ΔE00 4.30
Baby Poop Green
#8F9805
ΔE00 4.94
Pea Soup Green
#94A617
ΔE00 5.08
Puke Green
#9AAE07
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5A222 #2225A5
analogous
#A56122 #A5A222 #67A522
triadic
#A5A222 #22A5A2 #A222A5
tetradic
#A5A222 #22A561 #2225A5 #A52267
square
#A5A222 #22A561 #2225A5 #A52267
split-complementary
#A5A222 #2267A5 #6122A5
monochromatic
#403E0D #727018 #A5A222 #D4D130 #DFDC63
Accessibility & contrast
On white
2.70
#A5A222 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.79
#A5A222 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5A222
7.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5A222 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5A222 | 1.00 | 2.70 | 7.79 | 7.79 |
| #FFFFFF | 2.70 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B2A02D
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a5a222; /* rgb */ color: rgb(165, 162, 34); /* oklch */ color: oklch(69.3% 0.140 108.1);
Tailwind
colors: {
custom: {
50: '#c3bd69',
500: '#a5a222',
950: '#000000',
},
}SCSS
$custom: #a5a222; $custom-light: #c3bd69; $custom-dark: #000000;
JSON
{
"hex": "#a5a222",
"rgb": {
"r": 165,
"g": 162,
"b": 34
},
"hsl": {
"h": 58.626,
"s": 65.829,
"l": 39.02
},
"oklch": {
"l": 0.69311,
"c": 0.13976,
"h": 108.1
},
"luminance": 0.33955
}Semantic roles & 50–950 ramp
primary
#A5A222
secondary
#5F61C4
accent
#43E93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A