#B8B545#B8B545
#B8B545 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.4% C 0.133 H 107.7°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #B8B545 |
|---|---|
| RGB | rgb(184, 181, 69) |
| HSL | hsl(58, 45%, 50%) |
| HSV | hsv(58, 63%, 72%) |
| CMYK | cmyk(0%, 1.6%, 62.5%, 27.8%) |
| CIE-LAB | lab(72.01, -13.06, 55.61) |
| CIE-LCH | lch(72.01, 57.12, 103.21°) |
| OKLab | oklab(75.42% -0.0405 0.1265) |
| OKLCH | oklch(75.42% 0.133 107.7) |
| XYZ | xyz(37.3664, 43.6689, 12.0897) |
| Luminance | 0.4367 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 5.25
Mustard Green
#A8B504
ΔE00 5.29
Puke Yellow
#C2BE0E
ΔE00 5.37
Darkkhaki
#BDB76B
ΔE00 5.39
Snot
#ACBB0D
ΔE00 5.57
Vomit
#A2A415
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B8B545 #4548B8
analogous
#B87C45 #B8B545 #82B845
triadic
#B8B545 #45B8B5 #B545B8
tetradic
#B8B545 #45B87C #4548B8 #B84582
square
#B8B545 #45B87C #4548B8 #B84582
split-complementary
#B8B545 #4582B8 #7C45B8
monochromatic
#5F5D24 #8B8934 #B8B545 #CAC771 #DAD99D
Accessibility & contrast
On white
2.16
#B8B545 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.73
#B8B545 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B8B545
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B8B545 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B8B545 | 1.00 | 2.16 | 9.73 | 9.73 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AE37
Deuteranopia (green-blind)
#C5B24C
Tritanopia (blue-blind)
#C5AA9E
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #b8b545; /* rgb */ color: rgb(184, 181, 69); /* oklch */ color: oklch(75.4% 0.133 107.7);
Tailwind
colors: {
custom: {
50: '#d0ca7e',
500: '#b8b545',
950: '#000000',
},
}SCSS
$custom: #b8b545; $custom-light: #d0ca7e; $custom-dark: #000000;
JSON
{
"hex": "#b8b545",
"rgb": {
"r": 184,
"g": 181,
"b": 69
},
"hsl": {
"h": 58.435,
"s": 45.455,
"l": 49.608
},
"oklch": {
"l": 0.75418,
"c": 0.13284,
"h": 107.7
},
"luminance": 0.43668
}Semantic roles & 50–950 ramp
primary
#B8B545
secondary
#9293C7
accent
#56D553
background
#FDFCF7
surface
#FAF8EE
border
#D3D1C9
text
#14130A
muted
#83827C