#B7A52A#B7A52A
#B7A52A is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.7% C 0.136 H 100.5°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A52A |
|---|---|
| RGB | rgb(183, 165, 42) |
| HSL | hsl(52, 63%, 44%) |
| HSV | hsv(52, 77%, 72%) |
| CMYK | cmyk(0%, 9.8%, 77%, 28.2%) |
| CIE-LAB | lab(67.39, -6.58, 61.42) |
| CIE-LCH | lch(67.39, 61.77, 96.11°) |
| OKLab | oklab(71.66% -0.0249 0.1342) |
| OKLCH | oklch(71.66% 0.136 100.5) |
| XYZ | xyz(33.4031, 37.1463, 7.6005) |
| Luminance | 0.3715 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.24
Brown Yellow
#B29705
ΔE00 4.72
Brownish Yellow
#C9B003
ΔE00 4.83
Puke
#A5A502
ΔE00 5.15
Vomit
#A2A415
ΔE00 5.60
Ocher
#BF9B0C
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A52A #2A3CB7
analogous
#B75E2A #B7A52A #83B72A
triadic
#B7A52A #2AB7A5 #A52AB7
tetradic
#B7A52A #2AB75E #2A3CB7 #B72A83
square
#B7A52A #2AB75E #2A3CB7 #B72A83
split-complementary
#B7A52A #2A83B7 #5E2AB7
monochromatic
#534B13 #85781F #B7A52A #D5C349 #E1D47B
Accessibility & contrast
On white
2.49
#B7A52A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.43
#B7A52A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A52A
8.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A52A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A52A | 1.00 | 2.49 | 8.43 | 8.43 |
| #FFFFFF | 2.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.43 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.43 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A00E
Deuteranopia (green-blind)
#BAA733
Tritanopia (blue-blind)
#C5998E
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #b7a52a; /* rgb */ color: rgb(183, 165, 42); /* oklch */ color: oklch(71.7% 0.136 100.5);
Tailwind
colors: {
custom: {
50: '#d1bf6e',
500: '#b7a52a',
950: '#000000',
},
}SCSS
$custom: #b7a52a; $custom-light: #d1bf6e; $custom-dark: #000000;
JSON
{
"hex": "#b7a52a",
"rgb": {
"r": 183,
"g": 165,
"b": 42
},
"hsl": {
"h": 52.34,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.71662,
"c": 0.13646,
"h": 100.5
},
"luminance": 0.37145
}Semantic roles & 50–950 ramp
primary
#B7A52A
secondary
#747FC9
accent
#57E642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B