#B2B52E#B2B52E
#B2B52E is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.150 H 110.8°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B52E |
|---|---|
| RGB | rgb(178, 181, 46) |
| HSL | hsl(61, 59%, 45%) |
| HSV | hsv(61, 75%, 71%) |
| CMYK | cmyk(1.7%, 0%, 74.6%, 29%) |
| CIE-LAB | lab(71.36, -16.88, 63.61) |
| CIE-LCH | lch(71.36, 65.81, 104.86°) |
| OKLab | oklab(74.73% -0.0532 0.1398) |
| OKLCH | oklch(74.73% 0.15 110.8) |
| XYZ | xyz(35.3783, 42.7109, 8.9647) |
| Luminance | 0.4271 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.78
Snot
#ACBB0D
ΔE00 3.24
Puke Yellow
#C2BE0E
ΔE00 4.29
Bile
#B5C306
ΔE00 4.60
Olive Yellow
#C2B709
ΔE00 4.64
Puke
#A5A502
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B52E #312EB5
analogous
#B5742E #B2B52E #6FB52E
triadic
#B2B52E #2EB2B5 #B52EB2
tetradic
#B2B52E #2EB574 #312EB5 #B52E6F
square
#B2B52E #2EB574 #312EB5 #B52E6F
split-complementary
#B2B52E #2E6FB5 #742EB5
monochromatic
#525315 #828422 #B2B52E #CFD24E #DCDE7F
Accessibility & contrast
On white
2.20
#B2B52E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.54
#B2B52E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B52E
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B52E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B52E | 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)
#C3AD0F
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BFA99B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b2b52e; /* rgb */ color: rgb(178, 181, 46); /* oklch */ color: oklch(74.7% 0.150 110.8);
Tailwind
colors: {
custom: {
50: '#cdca71',
500: '#b2b52e',
950: '#000000',
},
}SCSS
$custom: #b2b52e; $custom-light: #cdca71; $custom-dark: #000000;
JSON
{
"hex": "#b2b52e",
"rgb": {
"r": 178,
"g": 181,
"b": 46
},
"hsl": {
"h": 61.333,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.7473,
"c": 0.14954,
"h": 110.8
},
"luminance": 0.4271
}Semantic roles & 50–950 ramp
primary
#B2B52E
secondary
#7978C7
accent
#45E349
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B