#B2AB25#B2AB25
#B2AB25 is a light, vivid yellow. Relative luminance 0.387; OKLCH L 72.5% C 0.145 H 106.3°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB25 |
|---|---|
| RGB | rgb(178, 171, 37) |
| HSL | hsl(57, 66%, 42%) |
| HSV | hsv(57, 79%, 70%) |
| CMYK | cmyk(0%, 3.9%, 79.2%, 30.2%) |
| CIE-LAB | lab(68.55, -12.11, 63.89) |
| CIE-LCH | lch(68.55, 65.03, 100.73°) |
| OKLab | oklab(72.47% -0.0406 0.1387) |
| OKLCH | oklch(72.47% 0.145 106.3) |
| XYZ | xyz(33.2584, 38.7256, 7.4728) |
| Luminance | 0.3872 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.95
Vomit
#A2A415
ΔE00 3.45
Muddy Yellow
#BFAC05
ΔE00 3.85
Olive Yellow
#C2B709
ΔE00 4.35
Mustard Green
#A8B504
ΔE00 5.21
Puke Yellow
#C2BE0E
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB25 #252CB2
analogous
#B26425 #B2AB25 #73B225
triadic
#B2AB25 #25B2AB #AB25B2
tetradic
#B2AB25 #25B264 #252CB2 #B22573
square
#B2AB25 #25B264 #252CB2 #B22573
split-complementary
#B2AB25 #2573B2 #6425B2
monochromatic
#4D4A10 #7F7A1A #B2AB25 #D7CF3D #E1DC70
Accessibility & contrast
On white
2.40
#B2AB25 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.74
#B2AB25 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB25
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB25 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB25 | 1.00 | 2.40 | 8.74 | 8.74 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA400
Deuteranopia (green-blind)
#BDAA31
Tritanopia (blue-blind)
#C09F92
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b2ab25; /* rgb */ color: rgb(178, 171, 37); /* oklch */ color: oklch(72.5% 0.145 106.3);
Tailwind
colors: {
custom: {
50: '#cdc36c',
500: '#b2ab25',
950: '#000000',
},
}SCSS
$custom: #b2ab25; $custom-light: #cdc36c; $custom-dark: #000000;
JSON
{
"hex": "#b2ab25",
"rgb": {
"r": 178,
"g": 171,
"b": 37
},
"hsl": {
"h": 57.021,
"s": 65.581,
"l": 42.157
},
"oklch": {
"l": 0.72475,
"c": 0.14454,
"h": 106.3
},
"luminance": 0.38724
}Semantic roles & 50–950 ramp
primary
#B2AB25
secondary
#6B6FC8
accent
#48E93F
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141208
muted
#83817B