#B9B238#B9B238
#B9B238 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.7% C 0.139 H 106.1°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #B9B238 |
|---|---|
| RGB | rgb(185, 178, 56) |
| HSL | hsl(57, 54%, 47%) |
| HSV | hsv(57, 70%, 73%) |
| CMYK | cmyk(0%, 3.8%, 69.7%, 27.5%) |
| CIE-LAB | lab(71.17, -11.85, 60.06) |
| CIE-LCH | lch(71.17, 61.22, 101.16°) |
| OKLab | oklab(74.74% -0.0385 0.1338) |
| OKLCH | oklch(74.74% 0.139 106.1) |
| XYZ | xyz(36.6432, 42.4419, 10.0025) |
| Luminance | 0.4244 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.88
Muddy Yellow
#BFAC05
ΔE00 4.54
Puke Yellow
#C2BE0E
ΔE00 4.67
Puke
#A5A502
ΔE00 4.96
Vomit
#A2A415
ΔE00 5.24
Mustard Green
#A8B504
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B9B238 #383FB9
analogous
#B97138 #B9B238 #80B938
triadic
#B9B238 #38B9B2 #B238B9
tetradic
#B9B238 #38B971 #383FB9 #B93880
square
#B9B238 #38B971 #383FB9 #B93880
split-complementary
#B9B238 #3880B9 #7138B9
monochromatic
#5B581C #8A852A #B9B238 #CFC95F #DDD98E
Accessibility & contrast
On white
2.21
#B9B238 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.49
#B9B238 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B9B238
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B9B238 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B9B238 | 1.00 | 2.21 | 9.49 | 9.49 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C4B140
Tritanopia (blue-blind)
#C6A69A
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #b9b238; /* rgb */ color: rgb(185, 178, 56); /* oklch */ color: oklch(74.7% 0.139 106.1);
Tailwind
colors: {
custom: {
50: '#d1c876',
500: '#b9b238',
950: '#000000',
},
}SCSS
$custom: #b9b238; $custom-light: #d1c876; $custom-dark: #000000;
JSON
{
"hex": "#b9b238",
"rgb": {
"r": 185,
"g": 178,
"b": 56
},
"hsl": {
"h": 56.744,
"s": 53.527,
"l": 47.255
},
"oklch": {
"l": 0.74744,
"c": 0.13924,
"h": 106.1
},
"luminance": 0.42441
}Semantic roles & 50–950 ramp
primary
#B9B238
secondary
#8589C8
accent
#53DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B