#ABAB2B#ABAB2B
#ABAB2B 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 | #ABAB2B |
|---|---|
| RGB | rgb(171, 171, 43) |
| HSL | hsl(60, 60%, 42%) |
| HSV | hsv(60, 75%, 67%) |
| CMYK | cmyk(0%, 0%, 74.9%, 32.9%) |
| CIE-LAB | lab(67.99, -14.94, 61.26) |
| CIE-LCH | lch(67.99, 63.06, 103.70°) |
| OKLab | oklab(71.89% -0.0477 0.1345) |
| OKLCH | oklch(71.89% 0.143 109.5) |
| XYZ | xyz(31.7947, 37.9591, 7.9370) |
| Luminance | 0.3796 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.43
Puke
#A5A502
ΔE00 2.55
Mustard Green
#A8B504
ΔE00 4.17
Puke Green
#9AAE07
ΔE00 4.68
Pea Soup Green
#94A617
ΔE00 4.94
Snot
#ACBB0D
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ABAB2B #2B2BAB
analogous
#AB6B2B #ABAB2B #6BAB2B
triadic
#ABAB2B #2BABAB #AB2BAB
tetradic
#ABAB2B #2BAB6B #2B2BAB #AB2B6B
square
#ABAB2B #2BAB6B #2B2BAB #AB2B6B
split-complementary
#ABAB2B #2B6BAB #6B2BAB
monochromatic
#494912 #7A7A1F #ABAB2B #D0D043 #DCDC74
Accessibility & contrast
On white
2.44
#ABAB2B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.59
#ABAB2B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ABAB2B
8.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ABAB2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ABAB2B | 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)
#B9A40E
Deuteranopia (green-blind)
#BBA835
Tritanopia (blue-blind)
#B7A093
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #abab2b; /* rgb */ color: rgb(171, 171, 43); /* oklch */ color: oklch(71.9% 0.143 109.5);
Tailwind
colors: {
custom: {
50: '#c8c36f',
500: '#abab2b',
950: '#000000',
},
}SCSS
$custom: #abab2b; $custom-light: #c8c36f; $custom-dark: #000000;
JSON
{
"hex": "#abab2b",
"rgb": {
"r": 171,
"g": 171,
"b": 43
},
"hsl": {
"h": 60,
"s": 59.813,
"l": 41.961
},
"oklch": {
"l": 0.71893,
"c": 0.1427,
"h": 109.5
},
"luminance": 0.37958
}Semantic roles & 50–950 ramp
primary
#ABAB2B
secondary
#6E6EC4
accent
#45E345
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B