#B5AB30#B5AB30
#B5AB30 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.8% C 0.138 H 104.6°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AB30 |
|---|---|
| RGB | rgb(181, 171, 48) |
| HSL | hsl(55, 58%, 45%) |
| HSV | hsv(55, 73%, 71%) |
| CMYK | cmyk(0%, 5.5%, 73.5%, 29%) |
| CIE-LAB | lab(68.87, -10.35, 60.66) |
| CIE-LCH | lch(68.87, 61.54, 99.68°) |
| OKLab | oklab(72.81% -0.0349 0.1338) |
| OKLCH | oklch(72.81% 0.138 104.6) |
| XYZ | xyz(34.1539, 39.1643, 8.5562) |
| Luminance | 0.3916 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 3.73
Puke
#A5A502
ΔE00 3.90
Vomit
#A2A415
ΔE00 4.25
Olive Yellow
#C2B709
ΔE00 4.60
Brownish Yellow
#C9B003
ΔE00 5.48
Puke Yellow
#C2BE0E
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AB30 #303AB5
analogous
#B56930 #B5AB30 #7CB530
triadic
#B5AB30 #30B5AB #AB30B5
tetradic
#B5AB30 #30B569 #303AB5 #B5307C
square
#B5AB30 #30B569 #303AB5 #B5307C
split-complementary
#B5AB30 #307CB5 #6930B5
monochromatic
#545016 #857D23 #B5AB30 #D1C751 #DED782
Accessibility & contrast
On white
2.38
#B5AB30 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.83
#B5AB30 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AB30
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AB30 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AB30 | 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)
#BAA519
Deuteranopia (green-blind)
#BEAB39
Tritanopia (blue-blind)
#C39F93
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #b5ab30; /* rgb */ color: rgb(181, 171, 48); /* oklch */ color: oklch(72.8% 0.138 104.6);
Tailwind
colors: {
custom: {
50: '#cfc371',
500: '#b5ab30',
950: '#000000',
},
}SCSS
$custom: #b5ab30; $custom-light: #cfc371; $custom-dark: #000000;
JSON
{
"hex": "#b5ab30",
"rgb": {
"r": 181,
"g": 171,
"b": 48
},
"hsl": {
"h": 55.489,
"s": 58.079,
"l": 44.902
},
"oklch": {
"l": 0.72809,
"c": 0.13825,
"h": 104.6
},
"luminance": 0.39163
}Semantic roles & 50–950 ramp
primary
#B5AB30
secondary
#7A80C7
accent
#52E146
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B