#B2AB30#B2AB30
#B2AB30 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.139 H 106.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB30 |
|---|---|
| RGB | rgb(178, 171, 48) |
| HSL | hsl(57, 58%, 44%) |
| HSV | hsv(57, 73%, 70%) |
| CMYK | cmyk(0%, 3.9%, 73%, 30.2%) |
| CIE-LAB | lab(68.61, -11.66, 60.32) |
| CIE-LCH | lch(68.61, 61.44, 100.94°) |
| OKLab | oklab(72.54% -0.0384 0.1332) |
| OKLCH | oklch(72.54% 0.139 106.1) |
| XYZ | xyz(33.4579, 38.8054, 8.5235) |
| Luminance | 0.3880 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.39
Vomit
#A2A415
ΔE00 3.61
Muddy Yellow
#BFAC05
ΔE00 4.40
Olive Yellow
#C2B709
ΔE00 4.91
Mustard Green
#A8B504
ΔE00 5.51
Puke Yellow
#C2BE0E
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB30 #3037B2
analogous
#B26A30 #B2AB30 #78B230
triadic
#B2AB30 #30B2AB #AB30B2
tetradic
#B2AB30 #30B26A #3037B2 #B23078
square
#B2AB30 #30B26A #3037B2 #B23078
split-complementary
#B2AB30 #3078B2 #6A30B2
monochromatic
#524E16 #827D23 #B2AB30 #D0C950 #DDD880
Accessibility & contrast
On white
2.40
#B2AB30 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.76
#B2AB30 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB30
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB30 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB30 | 1.00 | 2.40 | 8.76 | 8.76 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA519
Deuteranopia (green-blind)
#BDAA39
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b2ab30; /* rgb */ color: rgb(178, 171, 48); /* oklch */ color: oklch(72.5% 0.139 106.1);
Tailwind
colors: {
custom: {
50: '#cdc371',
500: '#b2ab30',
950: '#000000',
},
}SCSS
$custom: #b2ab30; $custom-light: #cdc371; $custom-dark: #000000;
JSON
{
"hex": "#b2ab30",
"rgb": {
"r": 178,
"g": 171,
"b": 48
},
"hsl": {
"h": 56.769,
"s": 57.522,
"l": 44.314
},
"oklch": {
"l": 0.7254,
"c": 0.13859,
"h": 106.1
},
"luminance": 0.38804
}Semantic roles & 50–950 ramp
primary
#B2AB30
secondary
#787CC6
accent
#4FE147
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B