#B2B828#B2B828
#B2B828 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.156 H 112.1°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B828 |
|---|---|
| RGB | rgb(178, 184, 40) |
| HSL | hsl(63, 64%, 44%) |
| HSV | hsv(63, 78%, 72%) |
| CMYK | cmyk(3.3%, 0%, 78.3%, 27.8%) |
| CIE-LAB | lab(72.16, -18.63, 66.22) |
| CIE-LCH | lch(72.16, 68.79, 105.71°) |
| OKLab | oklab(75.36% -0.0585 0.1443) |
| OKLCH | oklch(75.36% 0.156 112.1) |
| XYZ | xyz(35.8848, 43.9001, 8.5903) |
| Luminance | 0.4390 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.20
Snot
#ACBB0D
ΔE00 2.23
Bile
#B5C306
ΔE00 3.51
Baby Puke Green
#B6C406
ΔE00 3.73
Puke Yellow
#C2BE0E
ΔE00 3.91
Pea
#A4BF20
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B828 #2E28B8
analogous
#B87628 #B2B828 #6AB828
triadic
#B2B828 #28B2B8 #B828B2
tetradic
#B2B828 #28B876 #2E28B8 #B8286A
square
#B2B828 #28B876 #2E28B8 #B8286A
split-complementary
#B2B828 #286AB8 #7628B8
monochromatic
#515312 #81861D #B2B828 #D1D746 #DDE279
Accessibility & contrast
On white
2.15
#B2B828 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#B2B828 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B828
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B828 | 1.00 | 2.15 | 9.78 | 9.78 |
| #FFFFFF | 2.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7AF00
Deuteranopia (green-blind)
#C7B335
Tritanopia (blue-blind)
#BFAC9E
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #b2b828; /* rgb */ color: rgb(178, 184, 40); /* oklch */ color: oklch(75.4% 0.156 112.1);
Tailwind
colors: {
custom: {
50: '#cdcd6f',
500: '#b2b828',
950: '#000000',
},
}SCSS
$custom: #b2b828; $custom-light: #cdcd6f; $custom-dark: #000000;
JSON
{
"hex": "#b2b828",
"rgb": {
"r": 178,
"g": 184,
"b": 40
},
"hsl": {
"h": 62.5,
"s": 64.286,
"l": 43.922
},
"oklch": {
"l": 0.75363,
"c": 0.15568,
"h": 112.1
},
"luminance": 0.43899
}Semantic roles & 50–950 ramp
primary
#B2B828
secondary
#7672CA
accent
#41E747
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B