#A5A822#A5A822
#A5A822 is a light, vivid yellow. Relative luminance 0.361; OKLCH L 70.7% C 0.146 H 111.0°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A5A822 |
|---|---|
| RGB | rgb(165, 168, 34) |
| HSL | hsl(61, 66%, 40%) |
| HSV | hsv(61, 80%, 66%) |
| CMYK | cmyk(1.8%, 0%, 79.8%, 34.1%) |
| CIE-LAB | lab(66.61, -16.38, 62.64) |
| CIE-LCH | lch(66.61, 64.75, 104.65°) |
| OKLab | oklab(70.66% -0.0521 0.136) |
| OKLCH | oklch(70.66% 0.146 111) |
| XYZ | xyz(29.8095, 36.1209, 6.9148) |
| Luminance | 0.3612 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.32
Puke
#A5A502
ΔE00 1.86
Pea Soup Green
#94A617
ΔE00 3.82
Puke Green
#9AAE07
ΔE00 3.97
Mustard Green
#A8B504
ΔE00 4.24
Barf Green
#94AC02
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5A822 #2522A8
analogous
#A86822 #A5A822 #62A822
triadic
#A5A822 #22A5A8 #A822A5
tetradic
#A5A822 #22A868 #2522A8 #A82262
square
#A5A822 #22A868 #2522A8 #A82262
split-complementary
#A5A822 #2262A8 #6822A8
monochromatic
#41420D #737518 #A5A822 #D2D532 #DDE065
Accessibility & contrast
On white
2.55
#A5A822 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.22
#A5A822 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5A822
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5A822 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5A822 | 1.00 | 2.55 | 8.22 | 8.22 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B6A000
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#B19D90
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #a5a822; /* rgb */ color: rgb(165, 168, 34); /* oklch */ color: oklch(70.7% 0.146 111.0);
Tailwind
colors: {
custom: {
50: '#c3c16a',
500: '#a5a822',
950: '#000000',
},
}SCSS
$custom: #a5a822; $custom-light: #c3c16a; $custom-dark: #000000;
JSON
{
"hex": "#a5a822",
"rgb": {
"r": 165,
"g": 168,
"b": 34
},
"hsl": {
"h": 61.343,
"s": 66.337,
"l": 39.608
},
"oklch": {
"l": 0.70657,
"c": 0.14566,
"h": 111
},
"luminance": 0.3612
}Semantic roles & 50–950 ramp
primary
#A5A822
secondary
#6361C5
accent
#3FE942
background
#FCFBF6
surface
#F8F7EC
border
#D1D0C7
text
#131207
muted
#82817A