#B2B827#B2B827
#B2B827 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 | #B2B827 |
|---|---|
| RGB | rgb(178, 184, 39) |
| HSL | hsl(62, 65%, 44%) |
| HSV | hsv(62, 79%, 72%) |
| CMYK | cmyk(3.3%, 0%, 78.8%, 27.8%) |
| CIE-LAB | lab(72.16, -18.67, 66.51) |
| CIE-LCH | lch(72.16, 69.08, 105.68°) |
| OKLab | oklab(75.36% -0.0587 0.1447) |
| OKLCH | oklch(75.36% 0.156 112.1) |
| XYZ | xyz(35.8680, 43.8933, 8.5019) |
| Luminance | 0.4389 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.17
Snot
#ACBB0D
ΔE00 2.20
Bile
#B5C306
ΔE00 3.48
Baby Puke Green
#B6C406
ΔE00 3.69
Puke Yellow
#C2BE0E
ΔE00 3.87
Pea
#A4BF20
ΔE00 4.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B827 #2D27B8
analogous
#B87527 #B2B827 #69B827
triadic
#B2B827 #27B2B8 #B827B2
tetradic
#B2B827 #27B875 #2D27B8 #B82769
square
#B2B827 #27B875 #2D27B8 #B82769
split-complementary
#B2B827 #2769B8 #7527B8
monochromatic
#505312 #81861C #B2B827 #D1D845 #DEE277
Accessibility & contrast
On white
2.15
#B2B827 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.78
#B2B827 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B827
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B827 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B827 | 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: #b2b827; /* rgb */ color: rgb(178, 184, 39); /* oklch */ color: oklch(75.4% 0.156 112.1);
Tailwind
colors: {
custom: {
50: '#cdcd6f',
500: '#b2b827',
950: '#000000',
},
}SCSS
$custom: #b2b827; $custom-light: #cdcd6f; $custom-dark: #000000;
JSON
{
"hex": "#b2b827",
"rgb": {
"r": 178,
"g": 184,
"b": 39
},
"hsl": {
"h": 62.483,
"s": 65.022,
"l": 43.725
},
"oklch": {
"l": 0.75358,
"c": 0.15615,
"h": 112.1
},
"luminance": 0.43892
}Semantic roles & 50–950 ramp
primary
#B2B827
secondary
#7571CA
accent
#40E847
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B