#B7A22B#B7A22B
#B7A22B is a light, vivid yellow. Relative luminance 0.361; OKLCH L 71.0% C 0.134 H 98.7°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A22B |
|---|---|
| RGB | rgb(183, 162, 43) |
| HSL | hsl(51, 62%, 44%) |
| HSV | hsv(51, 77%, 72%) |
| CMYK | cmyk(0%, 11.5%, 76.5%, 28.2%) |
| CIE-LAB | lab(66.58, -4.95, 60.34) |
| CIE-LCH | lch(66.58, 60.54, 94.69°) |
| OKLab | oklab(71.03% -0.0202 0.1321) |
| OKLCH | oklch(71.03% 0.134 98.7) |
| XYZ | xyz(32.8865, 36.0840, 7.5177) |
| Luminance | 0.3608 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.78
Muddy Yellow
#BFAC05
ΔE00 4.01
Ocher
#BF9B0C
ΔE00 4.65
Dark Gold
#B59410
ΔE00 5.12
Brownish Yellow
#C9B003
ΔE00 5.33
Yellow Brown
#B79400
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A22B #2B40B7
analogous
#B75C2B #B7A22B #86B72B
triadic
#B7A22B #2BB7A2 #A22BB7
tetradic
#B7A22B #2BB75C #2B40B7 #B72B86
square
#B7A22B #2BB75C #2B40B7 #B72B86
split-complementary
#B7A22B #2B86B7 #5C2BB7
monochromatic
#544A14 #85761F #B7A22B #D5C04B #E0D17C
Accessibility & contrast
On white
2.56
#B7A22B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.22
#B7A22B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A22B
8.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A22B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A22B | 1.00 | 2.56 | 8.22 | 8.22 |
| #FFFFFF | 2.56 | 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)
#B29E12
Deuteranopia (green-blind)
#B8A533
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #b7a22b; /* rgb */ color: rgb(183, 162, 43); /* oklch */ color: oklch(71.0% 0.134 98.7);
Tailwind
colors: {
custom: {
50: '#d1bd6e',
500: '#b7a22b',
950: '#000000',
},
}SCSS
$custom: #b7a22b; $custom-light: #d1bd6e; $custom-dark: #000000;
JSON
{
"hex": "#b7a22b",
"rgb": {
"r": 183,
"g": 162,
"b": 43
},
"hsl": {
"h": 51,
"s": 61.947,
"l": 44.314
},
"oklch": {
"l": 0.71027,
"c": 0.13359,
"h": 98.7
},
"luminance": 0.36082
}Semantic roles & 50–950 ramp
primary
#B7A22B
secondary
#7582C9
accent
#5BE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#151208
muted
#83817B