#B7A12D#B7A12D
#B7A12D is a light, vivid yellow. Relative luminance 0.357; OKLCH L 70.8% C 0.132 H 98.0°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).
Color values
| HEX | #B7A12D |
|---|---|
| RGB | rgb(183, 161, 45) |
| HSL | hsl(50, 61%, 45%) |
| HSV | hsv(50, 75%, 72%) |
| CMYK | cmyk(0%, 12%, 75.4%, 28.2%) |
| CIE-LAB | lab(66.33, -4.33, 59.39) |
| CIE-LCH | lch(66.33, 59.55, 94.17°) |
| OKLab | oklab(70.83% -0.0183 0.1304) |
| OKLCH | oklch(70.83% 0.132 98) |
| XYZ | xyz(32.7486, 35.7482, 7.6572) |
| Luminance | 0.3575 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.57
Ocher
#BF9B0C
ΔE00 4.39
Muddy Yellow
#BFAC05
ΔE00 4.43
Dark Gold
#B59410
ΔE00 4.78
Yellow Brown
#B79400
ΔE00 5.21
Baby Poo
#AB9004
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7A12D #2D43B7
analogous
#B75C2D #B7A12D #88B72D
triadic
#B7A12D #2DB7A1 #A12DB7
tetradic
#B7A12D #2DB75C #2D43B7 #B72D88
square
#B7A12D #2DB75C #2D43B7 #B72D88
split-complementary
#B7A12D #2D88B7 #5C2DB7
monochromatic
#554B15 #867621 #B7A12D #D3BE4E #DFD07F
Accessibility & contrast
On white
2.58
#B7A12D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.15
#B7A12D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7A12D
8.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7A12D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7A12D | 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)
#B19D17
Deuteranopia (green-blind)
#B7A435
Tritanopia (blue-blind)
#C6958B
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b7a12d; /* rgb */ color: rgb(183, 161, 45); /* oklch */ color: oklch(70.8% 0.132 98.0);
Tailwind
colors: {
custom: {
50: '#d1bc6f',
500: '#b7a12d',
950: '#000000',
},
}SCSS
$custom: #b7a12d; $custom-light: #d1bc6f; $custom-dark: #000000;
JSON
{
"hex": "#b7a12d",
"rgb": {
"r": 183,
"g": 161,
"b": 45
},
"hsl": {
"h": 50.435,
"s": 60.526,
"l": 44.706
},
"oklch": {
"l": 0.70827,
"c": 0.1317,
"h": 98
},
"luminance": 0.35746
}Semantic roles & 50–950 ramp
primary
#B7A12D
secondary
#7884C8
accent
#5EE444
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#151108
muted
#83807B