#A1A228#A1A228
#A1A228 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.0% C 0.137 H 110.0°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).
Color values
| HEX | #A1A228 |
|---|---|
| RGB | rgb(161, 162, 40) |
| HSL | hsl(60, 60%, 40%) |
| HSV | hsv(60, 75%, 64%) |
| CMYK | cmyk(0.6%, 0%, 75.3%, 36.5%) |
| CIE-LAB | lab(64.62, -14.80, 58.84) |
| CIE-LCH | lch(64.62, 60.67, 104.12°) |
| OKLab | oklab(68.99% -0.047 0.1292) |
| OKLCH | oklch(68.99% 0.137 110) |
| XYZ | xyz(28.0023, 33.5717, 7.0120) |
| Luminance | 0.3357 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.59
Puke
#A5A502
ΔE00 2.58
Pea Soup
#929901
ΔE00 3.75
Pea Soup Green
#94A617
ΔE00 4.07
Baby Poop Green
#8F9805
ΔE00 4.26
Puke Green
#9AAE07
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A1A228 #2928A2
analogous
#A26628 #A1A228 #64A228
triadic
#A1A228 #28A1A2 #A228A1
tetradic
#A1A228 #28A266 #2928A2 #A22864
square
#A1A228 #28A266 #2928A2 #A22864
split-complementary
#A1A228 #2864A2 #6628A2
monochromatic
#3F4010 #70711C #A1A228 #CDCE39 #D9DA6A
Accessibility & contrast
On white
2.72
#A1A228 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.71
#A1A228 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A1A228
7.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A1A228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A1A228 | 1.00 | 2.72 | 7.71 | 7.71 |
| #FFFFFF | 2.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9B0C
Deuteranopia (green-blind)
#B19E32
Tritanopia (blue-blind)
#AD978B
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #a1a228; /* rgb */ color: rgb(161, 162, 40); /* oklch */ color: oklch(69.0% 0.137 110.0);
Tailwind
colors: {
custom: {
50: '#c0bd6c',
500: '#a1a228',
950: '#000000',
},
}SCSS
$custom: #a1a228; $custom-light: #c0bd6c; $custom-dark: #000000;
JSON
{
"hex": "#a1a228",
"rgb": {
"r": 161,
"g": 162,
"b": 40
},
"hsl": {
"h": 60.492,
"s": 60.396,
"l": 39.608
},
"oklch": {
"l": 0.68993,
"c": 0.13746,
"h": 110
},
"luminance": 0.33571
}Semantic roles & 50–950 ramp
primary
#A1A228
secondary
#6665C1
accent
#44E446
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A