#B2AB2A#B2AB2A
#B2AB2A is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.142 H 106.2°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AB2A |
|---|---|
| RGB | rgb(178, 171, 42) |
| HSL | hsl(57, 62%, 43%) |
| HSV | hsv(57, 76%, 70%) |
| CMYK | cmyk(0%, 3.9%, 76.4%, 30.2%) |
| CIE-LAB | lab(68.58, -11.92, 62.35) |
| CIE-LCH | lch(68.58, 63.48, 100.82°) |
| OKLab | oklab(72.5% -0.0397 0.1364) |
| OKLCH | oklch(72.5% 0.142 106.2) |
| XYZ | xyz(33.3423, 38.7592, 7.9150) |
| Luminance | 0.3876 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.11
Vomit
#A2A415
ΔE00 3.49
Muddy Yellow
#BFAC05
ΔE00 4.07
Olive Yellow
#C2B709
ΔE00 4.57
Mustard Green
#A8B504
ΔE00 5.32
Puke Yellow
#C2BE0E
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AB2A #2A31B2
analogous
#B2672A #B2AB2A #75B22A
triadic
#B2AB2A #2AB2AB #AB2AB2
tetradic
#B2AB2A #2AB267 #2A31B2 #B22A75
square
#B2AB2A #2AB267 #2A31B2 #B22A75
split-complementary
#B2AB2A #2A75B2 #672AB2
monochromatic
#4F4C13 #807B1E #B2AB2A #D3CC46 #DFDA77
Accessibility & contrast
On white
2.40
#B2AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.75
#B2AB2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AB2A
8.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AB2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AB2A | 1.00 | 2.40 | 8.75 | 8.75 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.75 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.75 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA40A
Deuteranopia (green-blind)
#BDAA34
Tritanopia (blue-blind)
#BF9F93
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b2ab2a; /* rgb */ color: rgb(178, 171, 42); /* oklch */ color: oklch(72.5% 0.142 106.2);
Tailwind
colors: {
custom: {
50: '#cdc36e',
500: '#b2ab2a',
950: '#000000',
},
}SCSS
$custom: #b2ab2a; $custom-light: #cdc36e; $custom-dark: #000000;
JSON
{
"hex": "#b2ab2a",
"rgb": {
"r": 178,
"g": 171,
"b": 42
},
"hsl": {
"h": 56.912,
"s": 61.818,
"l": 43.137
},
"oklch": {
"l": 0.72502,
"c": 0.14202,
"h": 106.2
},
"luminance": 0.38758
}Semantic roles & 50–950 ramp
primary
#B2AB2A
secondary
#7175C7
accent
#4BE543
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B