#B5A12C#B5A12C
#B5A12C is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.132 H 99.1°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A12C |
|---|---|
| RGB | rgb(181, 161, 44) |
| HSL | hsl(51, 61%, 44%) |
| HSV | hsv(51, 76%, 71%) |
| CMYK | cmyk(0%, 11%, 75.7%, 29%) |
| CIE-LAB | lab(66.13, -5.26, 59.50) |
| CIE-LCH | lch(66.13, 59.73, 95.05°) |
| OKLab | oklab(70.63% -0.0209 0.1305) |
| OKLCH | oklch(70.63% 0.132 99.1) |
| XYZ | xyz(32.2571, 35.4969, 7.5349) |
| Luminance | 0.3549 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.73
Muddy Yellow
#BFAC05
ΔE00 4.36
Ocher
#BF9B0C
ΔE00 4.88
Dark Gold
#B59410
ΔE00 5.11
Baby Poo
#AB9004
ΔE00 5.49
Yellow Brown
#B79400
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A12C #2C40B5
analogous
#B55D2C #B5A12C #85B52C
triadic
#B5A12C #2CB5A1 #A12CB5
tetradic
#B5A12C #2CB55D #2C40B5 #B52C85
square
#B5A12C #2CB55D #2C40B5 #B52C85
split-complementary
#B5A12C #2C85B5 #5D2CB5
monochromatic
#534914 #847520 #B5A12C #D3BF4B #DFD17C
Accessibility & contrast
On white
2.59
#B5A12C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#B5A12C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A12C
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A12C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A12C | 1.00 | 2.59 | 8.10 | 8.10 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19D15
Deuteranopia (green-blind)
#B7A434
Tritanopia (blue-blind)
#C3958B
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b5a12c; /* rgb */ color: rgb(181, 161, 44); /* oklch */ color: oklch(70.6% 0.132 99.1);
Tailwind
colors: {
custom: {
50: '#cfbc6e',
500: '#b5a12c',
950: '#000000',
},
}SCSS
$custom: #b5a12c; $custom-light: #cfbc6e; $custom-dark: #000000;
JSON
{
"hex": "#b5a12c",
"rgb": {
"r": 181,
"g": 161,
"b": 44
},
"hsl": {
"h": 51.241,
"s": 60.889,
"l": 44.118
},
"oklch": {
"l": 0.70628,
"c": 0.1322,
"h": 99.1
},
"luminance": 0.35495
}Semantic roles & 50–950 ramp
primary
#B5A12C
secondary
#7581C8
accent
#5BE444
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B