#B8B438#B8B438
#B8B438 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 75.1% C 0.141 H 107.5°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #B8B438 |
|---|---|
| RGB | rgb(184, 180, 56) |
| HSL | hsl(58, 53%, 47%) |
| HSV | hsv(58, 70%, 72%) |
| CMYK | cmyk(0%, 2.2%, 69.6%, 27.8%) |
| CIE-LAB | lab(71.64, -13.31, 60.49) |
| CIE-LCH | lch(71.64, 61.93, 102.41°) |
| OKLab | oklab(75.09% -0.0426 0.1347) |
| OKLCH | oklch(75.09% 0.141 107.5) |
| XYZ | xyz(36.8036, 43.1196, 10.1249) |
| Luminance | 0.4312 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.99
Puke Yellow
#C2BE0E
ΔE00 4.32
Mustard Green
#A8B504
ΔE00 4.59
Snot
#ACBB0D
ΔE00 5.00
Puke
#A5A502
ΔE00 5.08
Vomit Yellow
#C7C10C
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B8B438 #383CB8
analogous
#B87438 #B8B438 #7CB838
triadic
#B8B438 #38B8B4 #B438B8
tetradic
#B8B438 #38B874 #383CB8 #B8387C
square
#B8B438 #38B874 #383CB8 #B8387C
split-complementary
#B8B438 #387CB8 #7438B8
monochromatic
#5A581B #89862A #B8B438 #CECB5F #DDDA8E
Accessibility & contrast
On white
2.18
#B8B438 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.62
#B8B438 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B8B438
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B8B438 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B8B438 | 1.00 | 2.18 | 9.62 | 9.62 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD24
Deuteranopia (green-blind)
#C5B241
Tritanopia (blue-blind)
#C5A89B
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #b8b438; /* rgb */ color: rgb(184, 180, 56); /* oklch */ color: oklch(75.1% 0.141 107.5);
Tailwind
colors: {
custom: {
50: '#d1ca76',
500: '#b8b438',
950: '#000000',
},
}SCSS
$custom: #b8b438; $custom-light: #d1ca76; $custom-dark: #000000;
JSON
{
"hex": "#b8b438",
"rgb": {
"r": 184,
"g": 180,
"b": 56
},
"hsl": {
"h": 58.125,
"s": 53.333,
"l": 47.059
},
"oklch": {
"l": 0.75091,
"c": 0.1413,
"h": 107.5
},
"luminance": 0.43118
}Semantic roles & 50–950 ramp
primary
#B8B438
secondary
#8587C7
accent
#50DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B