#B7A12E#B7A12E
#B7A12E is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.8% C 0.131 H 97.9°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A12E |
|---|---|
| RGB | rgb(183, 161, 46) |
| HSL | hsl(50, 60%, 45%) |
| HSV | hsv(50, 75%, 72%) |
| CMYK | cmyk(0%, 12%, 74.9%, 28.2%) |
| CIE-LAB | lab(66.33, -4.29, 59.03) |
| CIE-LCH | lch(66.33, 59.19, 94.15°) |
| OKLab | oklab(70.83% -0.018 0.1299) |
| OKLCH | oklch(70.83% 0.131 97.9) |
| XYZ | xyz(32.7681, 35.7560, 7.7598) |
| Luminance | 0.3575 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.62
Ocher
#BF9B0C
ΔE00 4.42
Muddy Yellow
#BFAC05
ΔE00 4.50
Dark Gold
#B59410
ΔE00 4.79
Yellow Brown
#B79400
ΔE00 5.23
Baby Poo
#AB9004
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A12E #2E44B7
analogous
#B75D2E #B7A12E #88B72E
triadic
#B7A12E #2EB7A1 #A12EB7
tetradic
#B7A12E #2EB75D #2E44B7 #B72E88
square
#B7A12E #2EB75D #2E44B7 #B72E88
split-complementary
#B7A12E #2E88B7 #5D2EB7
monochromatic
#554B15 #867622 #B7A12E #D3BE4F #DFD080
Accessibility & contrast
On white
2.58
#B7A12E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.15
#B7A12E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A12E
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A12E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A12E | 1.00 | 2.58 | 8.15 | 8.15 |
| #FFFFFF | 2.58 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.15 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.15 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19D19
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b7a12e; /* rgb */ color: rgb(183, 161, 46); /* oklch */ color: oklch(70.8% 0.131 97.9);
Tailwind
colors: {
custom: {
50: '#d0bc6f',
500: '#b7a12e',
950: '#000000',
},
}SCSS
$custom: #b7a12e; $custom-light: #d0bc6f; $custom-dark: #000000;
JSON
{
"hex": "#b7a12e",
"rgb": {
"r": 183,
"g": 161,
"b": 46
},
"hsl": {
"h": 50.365,
"s": 59.825,
"l": 44.902
},
"oklch": {
"l": 0.70834,
"c": 0.13111,
"h": 97.9
},
"luminance": 0.35754
}Semantic roles & 50–950 ramp
primary
#B7A12E
secondary
#7986C8
accent
#5EE345
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B