#B4B828#B4B828
#B4B828 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.5% C 0.155 H 111.3°. Best body text is #000000 at 9.83:1 contrast (WCAG AA passes).
Color values
| HEX | #B4B828 |
|---|---|
| RGB | rgb(180, 184, 40) |
| HSL | hsl(62, 64%, 44%) |
| HSV | hsv(62, 78%, 72%) |
| CMYK | cmyk(2.2%, 0%, 78.3%, 27.8%) |
| CIE-LAB | lab(72.32, -17.77, 66.43) |
| CIE-LCH | lch(72.32, 68.76, 104.98°) |
| OKLab | oklab(75.53% -0.0563 0.1446) |
| OKLCH | oklch(75.53% 0.155 111.3) |
| XYZ | xyz(36.3472, 44.1385, 8.6120) |
| Luminance | 0.4414 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.55
Snot
#ACBB0D
ΔE00 2.59
Puke Yellow
#C2BE0E
ΔE00 3.51
Bile
#B5C306
ΔE00 3.63
Baby Puke Green
#B6C406
ΔE00 3.83
Olive Yellow
#C2B709
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B4B828 #2C28B8
analogous
#B87428 #B4B828 #6CB828
triadic
#B4B828 #28B4B8 #B828B4
tetradic
#B4B828 #28B874 #2C28B8 #B8286C
square
#B4B828 #28B874 #2C28B8 #B8286C
split-complementary
#B4B828 #286CB8 #7428B8
monochromatic
#525312 #83861D #B4B828 #D3D746 #DFE279
Accessibility & contrast
On white
2.14
#B4B828 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.83
#B4B828 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B4B828
9.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B4B828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B4B828 | 1.00 | 2.14 | 9.83 | 9.83 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C8B335
Tritanopia (blue-blind)
#C1AC9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #b4b828; /* rgb */ color: rgb(180, 184, 40); /* oklch */ color: oklch(75.5% 0.155 111.3);
Tailwind
colors: {
custom: {
50: '#cecd6f',
500: '#b4b828',
950: '#000000',
},
}SCSS
$custom: #b4b828; $custom-light: #cecd6f; $custom-dark: #000000;
JSON
{
"hex": "#b4b828",
"rgb": {
"r": 180,
"g": 184,
"b": 40
},
"hsl": {
"h": 61.667,
"s": 64.286,
"l": 43.922
},
"oklch": {
"l": 0.7553,
"c": 0.15516,
"h": 111.3
},
"luminance": 0.44137
}Semantic roles & 50–950 ramp
primary
#B4B828
secondary
#7572CA
accent
#41E745
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B