#B7AB2A#B7AB2A
#B7AB2A is a light, vivid yellow. Relative luminance 0.394; OKLCH L 73.0% C 0.141 H 103.8°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B7AB2A |
|---|---|
| RGB | rgb(183, 171, 42) |
| HSL | hsl(55, 63%, 44%) |
| HSV | hsv(55, 77%, 72%) |
| CMYK | cmyk(0%, 6.6%, 77%, 28.2%) |
| CIE-LAB | lab(69.01, -9.73, 62.91) |
| CIE-LCH | lch(69.01, 63.66, 98.79°) |
| OKLab | oklab(72.95% -0.0338 0.1373) |
| OKLCH | oklch(72.95% 0.141 103.8) |
| XYZ | xyz(34.5108, 39.3617, 7.9698) |
| Luminance | 0.3936 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 2.92
Puke
#A5A502
ΔE00 4.11
Olive Yellow
#C2B709
ΔE00 4.14
Vomit
#A2A415
ΔE00 4.63
Brownish Yellow
#C9B003
ΔE00 4.72
Mustard (survey)
#CEB301
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7AB2A #2A36B7
analogous
#B7652A #B7AB2A #7DB72A
triadic
#B7AB2A #2AB7AB #AB2AB7
tetradic
#B7AB2A #2AB765 #2A36B7 #B72A7D
square
#B7AB2A #2AB765 #2A36B7 #B72A7D
split-complementary
#B7AB2A #2A7DB7 #652AB7
monochromatic
#534E13 #857C1F #B7AB2A #D5C949 #E1D87B
Accessibility & contrast
On white
2.37
#B7AB2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.87
#B7AB2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7AB2A
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7AB2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7AB2A | 1.00 | 2.37 | 8.87 | 8.87 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.87 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.87 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BBA50A
Deuteranopia (green-blind)
#BFAB34
Tritanopia (blue-blind)
#C59F93
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b7ab2a; /* rgb */ color: rgb(183, 171, 42); /* oklch */ color: oklch(73.0% 0.141 103.8);
Tailwind
colors: {
custom: {
50: '#d1c36e',
500: '#b7ab2a',
950: '#000000',
},
}SCSS
$custom: #b7ab2a; $custom-light: #d1c36e; $custom-dark: #000000;
JSON
{
"hex": "#b7ab2a",
"rgb": {
"r": 183,
"g": 171,
"b": 42
},
"hsl": {
"h": 54.894,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.72954,
"c": 0.14144,
"h": 103.8
},
"luminance": 0.3936
}Semantic roles & 50–950 ramp
primary
#B7AB2A
secondary
#747BC9
accent
#50E642
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#151208
muted
#83817B