#B5B828#B5B828
#B5B828 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.6% C 0.155 H 110.8°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #B5B828 |
|---|---|
| RGB | rgb(181, 184, 40) |
| HSL | hsl(61, 64%, 44%) |
| HSV | hsv(61, 78%, 72%) |
| CMYK | cmyk(1.6%, 0%, 78.3%, 27.8%) |
| CIE-LAB | lab(72.40, -17.34, 66.53) |
| CIE-LCH | lch(72.40, 68.75, 104.61°) |
| OKLab | oklab(75.61% -0.0551 0.1448) |
| OKLCH | oklch(75.61% 0.155 110.8) |
| XYZ | xyz(36.5809, 44.2590, 8.6229) |
| Luminance | 0.4426 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.74
Snot
#ACBB0D
ΔE00 2.79
Puke Yellow
#C2BE0E
ΔE00 3.32
Bile
#B5C306
ΔE00 3.71
Baby Puke Green
#B6C406
ΔE00 3.91
Olive Yellow
#C2B709
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5B828 #2B28B8
analogous
#B87328 #B5B828 #6DB828
triadic
#B5B828 #28B5B8 #B828B5
tetradic
#B5B828 #28B873 #2B28B8 #B8286D
square
#B5B828 #28B873 #2B28B8 #B8286D
split-complementary
#B5B828 #286DB8 #7328B8
monochromatic
#525312 #84861D #B5B828 #D4D746 #E0E279
Accessibility & contrast
On white
2.13
#B5B828 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.85
#B5B828 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5B828
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5B828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5B828 | 1.00 | 2.13 | 9.85 | 9.85 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B000
Deuteranopia (green-blind)
#C8B335
Tritanopia (blue-blind)
#C2AC9E
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #b5b828; /* rgb */ color: rgb(181, 184, 40); /* oklch */ color: oklch(75.6% 0.155 110.8);
Tailwind
colors: {
custom: {
50: '#cfcd6f',
500: '#b5b828',
950: '#000000',
},
}SCSS
$custom: #b5b828; $custom-light: #cfcd6f; $custom-dark: #000000;
JSON
{
"hex": "#b5b828",
"rgb": {
"r": 181,
"g": 184,
"b": 40
},
"hsl": {
"h": 61.25,
"s": 64.286,
"l": 43.922
},
"oklch": {
"l": 0.75614,
"c": 0.15491,
"h": 110.8
},
"luminance": 0.44258
}Semantic roles & 50–950 ramp
primary
#B5B828
secondary
#7472CA
accent
#41E744
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B