#ABAB2A#ABAB2A
#ABAB2A is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.9% C 0.143 H 109.5°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).
Color values
| HEX | #ABAB2A |
|---|---|
| RGB | rgb(171, 171, 42) |
| HSL | hsl(60, 61%, 42%) |
| HSV | hsv(60, 75%, 67%) |
| CMYK | cmyk(0%, 0%, 75.4%, 32.9%) |
| CIE-LAB | lab(67.99, -14.98, 61.59) |
| CIE-LCH | lch(67.99, 63.39, 103.67°) |
| OKLab | oklab(71.89% -0.0479 0.135) |
| OKLCH | oklch(71.89% 0.143 109.5) |
| XYZ | xyz(31.7766, 37.9519, 7.8416) |
| Luminance | 0.3795 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.40
Puke
#A5A502
ΔE00 2.49
Mustard Green
#A8B504
ΔE00 4.13
Puke Green
#9AAE07
ΔE00 4.66
Pea Soup Green
#94A617
ΔE00 4.94
Snot
#ACBB0D
ΔE00 5.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ABAB2A #2A2AAB
analogous
#AB6B2A #ABAB2A #6BAB2A
triadic
#ABAB2A #2AABAB #AB2AAB
tetradic
#ABAB2A #2AAB6B #2A2AAB #AB2A6B
square
#ABAB2A #2AAB6B #2A2AAB #AB2A6B
split-complementary
#ABAB2A #2A6BAB #6B2AAB
monochromatic
#494912 #7A7A1E #ABAB2A #D1D142 #DDDD73
Accessibility & contrast
On white
2.44
#ABAB2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.59
#ABAB2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ABAB2A
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ABAB2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ABAB2A | 1.00 | 2.44 | 8.59 | 8.59 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A40A
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #abab2a; /* rgb */ color: rgb(171, 171, 42); /* oklch */ color: oklch(71.9% 0.143 109.5);
Tailwind
colors: {
custom: {
50: '#c8c36e',
500: '#abab2a',
950: '#000000',
},
}SCSS
$custom: #abab2a; $custom-light: #c8c36e; $custom-dark: #000000;
JSON
{
"hex": "#abab2a",
"rgb": {
"r": 171,
"g": 171,
"b": 42
},
"hsl": {
"h": 60,
"s": 60.563,
"l": 41.765
},
"oklch": {
"l": 0.71887,
"c": 0.14325,
"h": 109.5
},
"luminance": 0.37951
}Semantic roles & 50–950 ramp
primary
#ABAB2A
secondary
#6D6DC4
accent
#44E444
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B