#B5B240#B5B240
#B5B240 is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.5% C 0.134 H 107.8°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #B5B240 |
|---|---|
| RGB | rgb(181, 178, 64) |
| HSL | hsl(58, 48%, 48%) |
| HSV | hsv(58, 65%, 71%) |
| CMYK | cmyk(0%, 1.7%, 64.6%, 29%) |
| CIE-LAB | lab(70.90, -13.11, 56.47) |
| CIE-LCH | lch(70.90, 57.97, 103.07°) |
| OKLab | oklab(74.46% -0.041 0.1277) |
| OKLCH | oklch(74.46% 0.134 107.8) |
| XYZ | xyz(35.9031, 42.0358, 11.0720) |
| Luminance | 0.4204 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 5.02
Vomit
#A2A415
ΔE00 5.08
Puke
#A5A502
ΔE00 5.11
Olive Yellow
#C2B709
ΔE00 5.22
Snot
#ACBB0D
ΔE00 5.56
Puke Yellow
#C2BE0E
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5B240 #4043B5
analogous
#B57840 #B5B240 #7DB540
triadic
#B5B240 #40B5B2 #B240B5
tetradic
#B5B240 #40B578 #4043B5 #B5407D
square
#B5B240 #40B578 #4043B5 #B5407D
split-complementary
#B5B240 #407DB5 #7840B5
monochromatic
#5B5920 #888630 #B5B240 #CAC768 #DAD896
Accessibility & contrast
On white
2.23
#B5B240 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.41
#B5B240 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5B240
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5B240 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5B240 | 1.00 | 2.23 | 9.41 | 9.41 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AB31
Deuteranopia (green-blind)
#C2AF47
Tritanopia (blue-blind)
#C2A79B
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #b5b240; /* rgb */ color: rgb(181, 178, 64); /* oklch */ color: oklch(74.5% 0.134 107.8);
Tailwind
colors: {
custom: {
50: '#cec87b',
500: '#b5b240',
950: '#000000',
},
}SCSS
$custom: #b5b240; $custom-light: #cec87b; $custom-dark: #000000;
JSON
{
"hex": "#b5b240",
"rgb": {
"r": 181,
"g": 178,
"b": 64
},
"hsl": {
"h": 58.462,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.74458,
"c": 0.1341,
"h": 107.8
},
"luminance": 0.42035
}Semantic roles & 50–950 ramp
primary
#B5B240
secondary
#8B8DC5
accent
#54D750
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C