#B7B238#B7B238
#B7B238 is a light, vivid yellow. Relative luminance 0.422; OKLCH L 74.6% C 0.140 H 107.0°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #B7B238 |
|---|---|
| RGB | rgb(183, 178, 56) |
| HSL | hsl(58, 53%, 47%) |
| HSV | hsv(58, 69%, 72%) |
| CMYK | cmyk(0%, 2.7%, 69.4%, 28.2%) |
| CIE-LAB | lab(71.00, -12.71, 59.83) |
| CIE-LCH | lch(71.00, 61.17, 101.99°) |
| OKLab | oklab(74.57% -0.0408 0.1334) |
| OKLCH | oklch(74.57% 0.14 107) |
| XYZ | xyz(36.1640, 42.1948, 9.9801) |
| Luminance | 0.4219 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 4.17
Puke Yellow
#C2BE0E
ΔE00 4.75
Puke
#A5A502
ΔE00 4.76
Mustard Green
#A8B504
ΔE00 4.85
Muddy Yellow
#BFAC05
ΔE00 4.96
Vomit
#A2A415
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7B238 #383DB7
analogous
#B77338 #B7B238 #7DB738
triadic
#B7B238 #38B7B2 #B238B7
tetradic
#B7B238 #38B773 #383DB7 #B7387D
square
#B7B238 #38B773 #383DB7 #B7387D
split-complementary
#B7B238 #387DB7 #7338B7
monochromatic
#59571B #88842A #B7B238 #CEC95E #DCD98D
Accessibility & contrast
On white
2.22
#B7B238 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.44
#B7B238 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7B238
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7B238 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7B238 | 1.00 | 2.22 | 9.44 | 9.44 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AB25
Deuteranopia (green-blind)
#C3B040
Tritanopia (blue-blind)
#C4A69A
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #b7b238; /* rgb */ color: rgb(183, 178, 56); /* oklch */ color: oklch(74.6% 0.140 107.0);
Tailwind
colors: {
custom: {
50: '#d0c876',
500: '#b7b238',
950: '#000000',
},
}SCSS
$custom: #b7b238; $custom-light: #d0c876; $custom-dark: #000000;
JSON
{
"hex": "#b7b238",
"rgb": {
"r": 183,
"g": 178,
"b": 56
},
"hsl": {
"h": 57.638,
"s": 53.138,
"l": 46.863
},
"oklch": {
"l": 0.74568,
"c": 0.13951,
"h": 107
},
"luminance": 0.42194
}Semantic roles & 50–950 ramp
primary
#B7B238
secondary
#8487C7
accent
#51DD4B
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B