#B5A12A#B5A12A
#B5A12A 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 | #B5A12A |
|---|---|
| RGB | rgb(181, 161, 42) |
| HSL | hsl(51, 62%, 44%) |
| HSV | hsv(51, 77%, 71%) |
| CMYK | cmyk(0%, 11%, 76.8%, 29%) |
| CIE-LAB | lab(66.12, -5.34, 60.19) |
| CIE-LCH | lch(66.12, 60.42, 95.07°) |
| OKLab | oklab(70.62% -0.0213 0.1316) |
| OKLCH | oklch(70.62% 0.133 99.2) |
| XYZ | xyz(32.2205, 35.4823, 7.3417) |
| Luminance | 0.3548 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.66
Muddy Yellow
#BFAC05
ΔE00 4.23
Ocher
#BF9B0C
ΔE00 4.83
Dark Gold
#B59410
ΔE00 5.09
Baby Poo
#AB9004
ΔE00 5.45
Yellow Brown
#B79400
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A12A #2A3EB5
analogous
#B55B2A #B5A12A #83B52A
triadic
#B5A12A #2AB5A1 #A12AB5
tetradic
#B5A12A #2AB55B #2A3EB5 #B52A83
square
#B5A12A #2AB55B #2A3EB5 #B52A83
split-complementary
#B5A12A #2A83B5 #5B2AB5
monochromatic
#524913 #83751E #B5A12A #D4C048 #E0D179
Accessibility & contrast
On white
2.59
#B5A12A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#B5A12A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A12A
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A12A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A12A | 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)
#B19D11
Deuteranopia (green-blind)
#B7A432
Tritanopia (blue-blind)
#C3958A
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b5a12a; /* rgb */ color: rgb(181, 161, 42); /* oklch */ color: oklch(70.6% 0.133 99.2);
Tailwind
colors: {
custom: {
50: '#cfbc6d',
500: '#b5a12a',
950: '#000000',
},
}SCSS
$custom: #b5a12a; $custom-light: #cfbc6d; $custom-dark: #000000;
JSON
{
"hex": "#b5a12a",
"rgb": {
"r": 181,
"g": 161,
"b": 42
},
"hsl": {
"h": 51.367,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.70615,
"c": 0.13334,
"h": 99.2
},
"luminance": 0.35481
}Semantic roles & 50–950 ramp
primary
#B5A12A
secondary
#737FC8
accent
#5AE542
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141108
muted
#83807B