#B9B42E#B9B42E
#B9B42E is a light, vivid yellow. Relative luminance 0.432; OKLCH L 75.1% C 0.147 H 107.3°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #B9B42E |
|---|---|
| RGB | rgb(185, 180, 46) |
| HSL | hsl(58, 60%, 45%) |
| HSV | hsv(58, 75%, 73%) |
| CMYK | cmyk(0%, 2.7%, 75.1%, 27.5%) |
| CIE-LAB | lab(71.66, -13.34, 64.10) |
| CIE-LCH | lch(71.66, 65.47, 101.76°) |
| OKLab | oklab(75.11% -0.0437 0.1406) |
| OKLCH | oklch(75.11% 0.147 107.3) |
| XYZ | xyz(36.8235, 43.1553, 8.9744) |
| Luminance | 0.4315 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.07
Puke Yellow
#C2BE0E
ΔE00 3.58
Mustard Green
#A8B504
ΔE00 4.43
Vomit Yellow
#C7C10C
ΔE00 4.45
Muddy Yellow
#BFAC05
ΔE00 4.51
Snot
#ACBB0D
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B9B42E #2E33B9
analogous
#B96F2E #B9B42E #78B92E
triadic
#B9B42E #2EB9B4 #B42EB9
tetradic
#B9B42E #2EB96F #2E33B9 #B92E78
square
#B9B42E #2EB96F #2E33B9 #B92E78
split-complementary
#B9B42E #2E78B9 #6F2EB9
monochromatic
#575516 #888422 #B9B42E #D4CF51 #E0DC82
Accessibility & contrast
On white
2.18
#B9B42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#B9B42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B9B42E
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B9B42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B9B42E | 1.00 | 2.18 | 9.63 | 9.63 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD0F
Deuteranopia (green-blind)
#C6B239
Tritanopia (blue-blind)
#C7A89B
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #b9b42e; /* rgb */ color: rgb(185, 180, 46); /* oklch */ color: oklch(75.1% 0.147 107.3);
Tailwind
colors: {
custom: {
50: '#d2ca71',
500: '#b9b42e',
950: '#000000',
},
}SCSS
$custom: #b9b42e; $custom-light: #d2ca71; $custom-dark: #000000;
JSON
{
"hex": "#b9b42e",
"rgb": {
"r": 185,
"g": 180,
"b": 46
},
"hsl": {
"h": 57.842,
"s": 60.173,
"l": 45.294
},
"oklch": {
"l": 0.75112,
"c": 0.14718,
"h": 107.3
},
"luminance": 0.43154
}Semantic roles & 50–950 ramp
primary
#B9B42E
secondary
#7A7DC9
accent
#4AE344
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#151308
muted
#83827B