#B5B22E#B5B22E
#B5B22E is a light, vivid yellow. Relative luminance 0.419; OKLCH L 74.3% C 0.146 H 108.1°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #B5B22E |
|---|---|
| RGB | rgb(181, 178, 46) |
| HSL | hsl(59, 59%, 45%) |
| HSV | hsv(59, 75%, 71%) |
| CMYK | cmyk(0%, 1.7%, 74.6%, 29%) |
| CIE-LAB | lab(70.78, -14.05, 63.16) |
| CIE-LCH | lch(70.78, 64.70, 102.54°) |
| OKLab | oklab(74.33% -0.0454 0.1387) |
| OKLCH | oklch(74.33% 0.146 108.1) |
| XYZ | xyz(35.4710, 41.8630, 8.7961) |
| Luminance | 0.4186 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.80
Mustard Green
#A8B504
ΔE00 4.00
Puke
#A5A502
ΔE00 4.22
Puke Yellow
#C2BE0E
ΔE00 4.25
Vomit
#A2A415
ΔE00 4.54
Snot
#ACBB0D
ΔE00 4.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5B22E #2E31B5
analogous
#B56F2E #B5B22E #74B52E
triadic
#B5B22E #2EB5B2 #B22EB5
tetradic
#B5B22E #2EB56F #2E31B5 #B52E74
square
#B5B22E #2EB56F #2E31B5 #B52E74
split-complementary
#B5B22E #2E74B5 #6F2EB5
monochromatic
#535215 #848222 #B5B22E #D2CF4E #DEDC7F
Accessibility & contrast
On white
2.24
#B5B22E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.37
#B5B22E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5B22E
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5B22E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5B22E | 1.00 | 2.24 | 9.37 | 9.37 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AB11
Deuteranopia (green-blind)
#C3AF38
Tritanopia (blue-blind)
#C2A699
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #b5b22e; /* rgb */ color: rgb(181, 178, 46); /* oklch */ color: oklch(74.3% 0.146 108.1);
Tailwind
colors: {
custom: {
50: '#cfc871',
500: '#b5b22e',
950: '#000000',
},
}SCSS
$custom: #b5b22e; $custom-light: #cfc871; $custom-dark: #000000;
JSON
{
"hex": "#b5b22e",
"rgb": {
"r": 181,
"g": 178,
"b": 46
},
"hsl": {
"h": 58.667,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.74325,
"c": 0.14596,
"h": 108.1
},
"luminance": 0.41862
}Semantic roles & 50–950 ramp
primary
#B5B22E
secondary
#7879C7
accent
#49E345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B