#B7A22E#B7A22E
#B7A22E is a light, vivid yellow. Relative luminance 0.361; OKLCH L 71.0% C 0.132 H 98.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A22E |
|---|---|
| RGB | rgb(183, 162, 46) |
| HSL | hsl(51, 60%, 45%) |
| HSV | hsv(51, 75%, 72%) |
| CMYK | cmyk(0%, 11.5%, 74.9%, 28.2%) |
| CIE-LAB | lab(66.60, -4.82, 59.29) |
| CIE-LCH | lch(66.60, 59.48, 94.65°) |
| OKLab | oklab(71.05% -0.0196 0.1304) |
| OKLCH | oklch(71.05% 0.132 98.5) |
| XYZ | xyz(32.9435, 36.1069, 7.8183) |
| Luminance | 0.3610 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.89
Muddy Yellow
#BFAC05
ΔE00 4.22
Ocher
#BF9B0C
ΔE00 4.72
Dark Gold
#B59410
ΔE00 5.15
Brownish Yellow
#C9B003
ΔE00 5.50
Yellow Brown
#B79400
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A22E #2E43B7
analogous
#B75E2E #B7A22E #87B72E
triadic
#B7A22E #2EB7A2 #A22EB7
tetradic
#B7A22E #2EB75E #2E43B7 #B72E87
square
#B7A22E #2EB75E #2E43B7 #B72E87
split-complementary
#B7A22E #2E87B7 #5E2EB7
monochromatic
#554B15 #867722 #B7A22E #D3BF4F #DFD180
Accessibility & contrast
On white
2.55
#B7A22E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.22
#B7A22E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A22E
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A22E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A22E | 1.00 | 2.55 | 8.22 | 8.22 |
| #FFFFFF | 2.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B29E19
Deuteranopia (green-blind)
#B8A536
Tritanopia (blue-blind)
#C6968C
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #b7a22e; /* rgb */ color: rgb(183, 162, 46); /* oklch */ color: oklch(71.0% 0.132 98.5);
Tailwind
colors: {
custom: {
50: '#d0bd6f',
500: '#b7a22e',
950: '#000000',
},
}SCSS
$custom: #b7a22e; $custom-light: #d0bd6f; $custom-dark: #000000;
JSON
{
"hex": "#b7a22e",
"rgb": {
"r": 183,
"g": 162,
"b": 46
},
"hsl": {
"h": 50.803,
"s": 59.825,
"l": 44.902
},
"oklch": {
"l": 0.71047,
"c": 0.13187,
"h": 98.5
},
"luminance": 0.36105
}Semantic roles & 50–950 ramp
primary
#B7A22E
secondary
#7985C8
accent
#5DE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151208
muted
#83817B