#B2B52A#B2B52A
#B2B52A is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.152 H 110.8°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B52A |
|---|---|
| RGB | rgb(178, 181, 42) |
| HSL | hsl(61, 62%, 44%) |
| HSV | hsv(61, 77%, 71%) |
| CMYK | cmyk(1.7%, 0%, 76.8%, 29%) |
| CIE-LAB | lab(71.34, -17.04, 64.88) |
| CIE-LCH | lch(71.34, 67.08, 104.72°) |
| OKLab | oklab(74.71% -0.054 0.1417) |
| OKLCH | oklch(74.71% 0.152 110.8) |
| XYZ | xyz(35.3032, 42.6809, 8.5686) |
| Luminance | 0.4268 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.61
Snot
#ACBB0D
ΔE00 3.10
Puke Yellow
#C2BE0E
ΔE00 4.08
Bile
#B5C306
ΔE00 4.44
Olive Yellow
#C2B709
ΔE00 4.45
Baby Puke Green
#B6C406
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B52A #2D2AB5
analogous
#B5722A #B2B52A #6CB52A
triadic
#B2B52A #2AB2B5 #B52AB2
tetradic
#B2B52A #2AB572 #2D2AB5 #B52A6C
square
#B2B52A #2AB572 #2D2AB5 #B52A6C
split-complementary
#B2B52A #2A6CB5 #722AB5
monochromatic
#505213 #81831E #B2B52A #D1D448 #DEE079
Accessibility & contrast
On white
2.20
#B2B52A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.54
#B2B52A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B52A
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B52A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B52A | 1.00 | 2.20 | 9.54 | 9.54 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD01
Deuteranopia (green-blind)
#C5B036
Tritanopia (blue-blind)
#BFA99B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b2b52a; /* rgb */ color: rgb(178, 181, 42); /* oklch */ color: oklch(74.7% 0.152 110.8);
Tailwind
colors: {
custom: {
50: '#cdca70',
500: '#b2b52a',
950: '#000000',
},
}SCSS
$custom: #b2b52a; $custom-light: #cdca70; $custom-dark: #000000;
JSON
{
"hex": "#b2b52a",
"rgb": {
"r": 178,
"g": 181,
"b": 42
},
"hsl": {
"h": 61.295,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.74707,
"c": 0.15167,
"h": 110.8
},
"luminance": 0.4268
}Semantic roles & 50–950 ramp
primary
#B2B52A
secondary
#7573C8
accent
#42E546
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B