#B5A12B#B5A12B
#B5A12B is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.6% C 0.133 H 99.2°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A12B |
|---|---|
| RGB | rgb(181, 161, 43) |
| HSL | hsl(51, 62%, 44%) |
| HSV | hsv(51, 76%, 71%) |
| CMYK | cmyk(0%, 11%, 76.2%, 29%) |
| CIE-LAB | lab(66.13, -5.30, 59.85) |
| CIE-LCH | lch(66.13, 60.08, 95.06°) |
| OKLab | oklab(70.62% -0.0211 0.1311) |
| OKLCH | oklch(70.62% 0.133 99.2) |
| XYZ | xyz(32.2386, 35.4895, 7.4371) |
| Luminance | 0.3549 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.70
Muddy Yellow
#BFAC05
ΔE00 4.30
Ocher
#BF9B0C
ΔE00 4.86
Dark Gold
#B59410
ΔE00 5.10
Baby Poo
#AB9004
ΔE00 5.47
Yellow Brown
#B79400
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A12B #2B3FB5
analogous
#B55C2B #B5A12B #84B52B
triadic
#B5A12B #2BB5A1 #A12BB5
tetradic
#B5A12B #2BB55C #2B3FB5 #B52B84
square
#B5A12B #2BB55C #2B3FB5 #B52B84
split-complementary
#B5A12B #2B84B5 #5C2BB5
monochromatic
#524914 #84751F #B5A12B #D4C049 #E0D17B
Accessibility & contrast
On white
2.59
#B5A12B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#B5A12B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A12B
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A12B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A12B | 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)
#B19D13
Deuteranopia (green-blind)
#B7A433
Tritanopia (blue-blind)
#C3958A
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b5a12b; /* rgb */ color: rgb(181, 161, 43); /* oklch */ color: oklch(70.6% 0.133 99.2);
Tailwind
colors: {
custom: {
50: '#cfbc6e',
500: '#b5a12b',
950: '#000000',
},
}SCSS
$custom: #b5a12b; $custom-light: #cfbc6e; $custom-dark: #000000;
JSON
{
"hex": "#b5a12b",
"rgb": {
"r": 181,
"g": 161,
"b": 43
},
"hsl": {
"h": 51.304,
"s": 61.607,
"l": 43.922
},
"oklch": {
"l": 0.70622,
"c": 0.13278,
"h": 99.2
},
"luminance": 0.35488
}Semantic roles & 50–950 ramp
primary
#B5A12B
secondary
#7480C8
accent
#5BE543
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B