#B5AB2E#B5AB2E
#B5AB2E is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.8% C 0.139 H 104.7°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AB2E |
|---|---|
| RGB | rgb(181, 171, 46) |
| HSL | hsl(56, 59%, 45%) |
| HSV | hsv(56, 75%, 71%) |
| CMYK | cmyk(0%, 5.5%, 74.6%, 29%) |
| CIE-LAB | lab(68.86, -10.44, 61.36) |
| CIE-LCH | lch(68.86, 62.24, 99.65°) |
| OKLab | oklab(72.8% -0.0353 0.1349) |
| OKLCH | oklch(72.8% 0.139 104.7) |
| XYZ | xyz(34.1136, 39.1482, 8.3437) |
| Luminance | 0.3915 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.59
Puke
#A5A502
ΔE00 3.82
Vomit
#A2A415
ΔE00 4.21
Olive Yellow
#C2B709
ΔE00 4.48
Brownish Yellow
#C9B003
ΔE00 5.38
Puke Yellow
#C2BE0E
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AB2E #2E38B5
analogous
#B5682E #B5AB2E #7BB52E
triadic
#B5AB2E #2EB5AB #AB2EB5
tetradic
#B5AB2E #2EB568 #2E38B5 #B52E7B
square
#B5AB2E #2EB568 #2E38B5 #B52E7B
split-complementary
#B5AB2E #2E7BB5 #682EB5
monochromatic
#534F15 #847D22 #B5AB2E #D2C84E #DED77F
Accessibility & contrast
On white
2.38
#B5AB2E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.83
#B5AB2E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AB2E
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AB2E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AB2E | 1.00 | 2.38 | 8.83 | 8.83 |
| #FFFFFF | 2.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.83 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.83 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA515
Deuteranopia (green-blind)
#BEAA37
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b5ab2e; /* rgb */ color: rgb(181, 171, 46); /* oklch */ color: oklch(72.8% 0.139 104.7);
Tailwind
colors: {
custom: {
50: '#cfc370',
500: '#b5ab2e',
950: '#000000',
},
}SCSS
$custom: #b5ab2e; $custom-light: #cfc370; $custom-dark: #000000;
JSON
{
"hex": "#b5ab2e",
"rgb": {
"r": 181,
"g": 171,
"b": 46
},
"hsl": {
"h": 55.556,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.72796,
"c": 0.13943,
"h": 104.7
},
"luminance": 0.39147
}Semantic roles & 50–950 ramp
primary
#B5AB2E
secondary
#787DC7
accent
#51E345
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B