#ABAB31#ABAB31
#ABAB31 is a light, vivid yellow. Relative luminance 0.380; OKLCH L 71.9% C 0.139 H 109.4°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #ABAB31 |
|---|---|
| RGB | rgb(171, 171, 49) |
| HSL | hsl(60, 55%, 43%) |
| HSV | hsv(60, 71%, 67%) |
| CMYK | cmyk(0%, 0%, 71.3%, 32.9%) |
| CIE-LAB | lab(68.03, -14.66, 59.19) |
| CIE-LCH | lch(68.03, 60.98, 103.91°) |
| OKLab | oklab(71.93% -0.0463 0.1312) |
| OKLCH | oklch(71.93% 0.139 109.4) |
| XYZ | xyz(31.9130, 38.0064, 8.5600) |
| Luminance | 0.3800 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.70
Puke
#A5A502
ΔE00 2.98
Mustard Green
#A8B504
ΔE00 4.47
Puke Green
#9AAE07
ΔE00 4.84
Pea Soup Green
#94A617
ΔE00 4.97
Snot
#ACBB0D
ΔE00 5.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ABAB31 #3131AB
analogous
#AB6E31 #ABAB31 #6EAB31
triadic
#ABAB31 #31ABAB #AB31AB
tetradic
#ABAB31 #31AB6E #3131AB #AB316E
square
#ABAB31 #31AB6E #3131AB #AB316E
split-complementary
#ABAB31 #316EAB #6E31AB
monochromatic
#4C4C16 #7B7B23 #ABAB31 #CCCC4D #DADA7D
Accessibility & contrast
On white
2.44
#ABAB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.60
#ABAB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ABAB31
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ABAB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ABAB31 | 1.00 | 2.44 | 8.60 | 8.60 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BAA83A
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #abab31; /* rgb */ color: rgb(171, 171, 49); /* oklch */ color: oklch(71.9% 0.139 109.4);
Tailwind
colors: {
custom: {
50: '#c7c372',
500: '#abab31',
950: '#000000',
},
}SCSS
$custom: #abab31; $custom-light: #c7c372; $custom-dark: #000000;
JSON
{
"hex": "#abab31",
"rgb": {
"r": 171,
"g": 171,
"b": 49
},
"hsl": {
"h": 60,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.71932,
"c": 0.13914,
"h": 109.4
},
"luminance": 0.38005
}Semantic roles & 50–950 ramp
primary
#ABAB31
secondary
#7575C2
accent
#49DF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#131208
muted
#82817B