#B7B22E#B7B22E
#B7B22E is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.5% C 0.146 H 107.2°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).
Color values
| HEX | #B7B22E |
|---|---|
| RGB | rgb(183, 178, 46) |
| HSL | hsl(58, 60%, 45%) |
| HSV | hsv(58, 75%, 72%) |
| CMYK | cmyk(0%, 2.7%, 74.9%, 28.2%) |
| CIE-LAB | lab(70.94, -13.19, 63.37) |
| CIE-LCH | lch(70.94, 64.73, 101.75°) |
| OKLab | oklab(74.5% -0.0431 0.1391) |
| OKLCH | oklch(74.5% 0.146 107.2) |
| XYZ | xyz(35.9434, 42.1066, 8.8183) |
| Luminance | 0.4210 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.43
Puke Yellow
#C2BE0E
ΔE00 4.11
Puke
#A5A502
ΔE00 4.40
Muddy Yellow
#BFAC05
ΔE00 4.43
Mustard Green
#A8B504
ΔE00 4.44
Vomit
#A2A415
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7B22E #2E33B7
analogous
#B76D2E #B7B22E #78B72E
triadic
#B7B22E #2EB7B2 #B22EB7
tetradic
#B7B22E #2EB76D #2E33B7 #B72E78
square
#B7B22E #2EB76D #2E33B7 #B72E78
split-complementary
#B7B22E #2E78B7 #6D2EB7
monochromatic
#555315 #868222 #B7B22E #D3CE4F #DFDC80
Accessibility & contrast
On white
2.23
#B7B22E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.42
#B7B22E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7B22E
9.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7B22E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7B22E | 1.00 | 2.23 | 9.42 | 9.42 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AB11
Deuteranopia (green-blind)
#C4B038
Tritanopia (blue-blind)
#C5A699
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #b7b22e; /* rgb */ color: rgb(183, 178, 46); /* oklch */ color: oklch(74.5% 0.146 107.2);
Tailwind
colors: {
custom: {
50: '#d0c871',
500: '#b7b22e',
950: '#000000',
},
}SCSS
$custom: #b7b22e; $custom-light: #d0c871; $custom-dark: #000000;
JSON
{
"hex": "#b7b22e",
"rgb": {
"r": 183,
"g": 178,
"b": 46
},
"hsl": {
"h": 57.81,
"s": 59.825,
"l": 44.902
},
"oklch": {
"l": 0.745,
"c": 0.14561,
"h": 107.2
},
"luminance": 0.42105
}Semantic roles & 50–950 ramp
primary
#B7B22E
secondary
#797CC8
accent
#4BE345
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B