#A5A227#A5A227
#A5A227 is a light, vivid yellow. Relative luminance 0.340; OKLCH L 69.3% C 0.137 H 108.1°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).
Color values
| HEX | #A5A227 |
|---|---|
| RGB | rgb(165, 162, 39) |
| HSL | hsl(59, 62%, 40%) |
| HSV | hsv(59, 76%, 65%) |
| CMYK | cmyk(0%, 1.8%, 76.4%, 35.3%) |
| CIE-LAB | lab(64.95, -13.08, 59.60) |
| CIE-LCH | lch(64.95, 61.02, 102.38°) |
| OKLab | oklab(69.34% -0.0425 0.1305) |
| OKLCH | oklch(69.34% 0.137 108.1) |
| XYZ | xyz(28.8047, 33.9874, 6.9620) |
| Luminance | 0.3399 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.75
Puke
#A5A502
ΔE00 2.31
Pea Soup
#929901
ΔE00 4.37
Baby Poop Green
#8F9805
ΔE00 4.97
Pea Soup Green
#94A617
ΔE00 5.08
Puke Green
#9AAE07
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A5A227 #272AA5
analogous
#A56327 #A5A227 #69A527
triadic
#A5A227 #27A5A2 #A227A5
tetradic
#A5A227 #27A563 #272AA5 #A52769
square
#A5A227 #27A563 #272AA5 #A52769
split-complementary
#A5A227 #2769A5 #6327A5
monochromatic
#424110 #74711B #A5A227 #D0CD39 #DCD96A
Accessibility & contrast
On white
2.69
#A5A227 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.80
#A5A227 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A5A227
7.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A5A227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A5A227 | 1.00 | 2.69 | 7.80 | 7.80 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.80 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.80 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B09B08
Deuteranopia (green-blind)
#B2A031
Tritanopia (blue-blind)
#B1978B
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a5a227; /* rgb */ color: rgb(165, 162, 39); /* oklch */ color: oklch(69.3% 0.137 108.1);
Tailwind
colors: {
custom: {
50: '#c3bd6c',
500: '#a5a227',
950: '#000000',
},
}SCSS
$custom: #a5a227; $custom-light: #c3bd6c; $custom-dark: #000000;
JSON
{
"hex": "#a5a227",
"rgb": {
"r": 165,
"g": 162,
"b": 39
},
"hsl": {
"h": 58.571,
"s": 61.765,
"l": 40
},
"oklch": {
"l": 0.69338,
"c": 0.1372,
"h": 108.1
},
"luminance": 0.33986
}Semantic roles & 50–950 ramp
primary
#A5A227
secondary
#6668C2
accent
#47E543
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A