#b5ba21
a dark, vivid yellow · cool · closest name: olive
RGB
181, 186, 33
HSL
62°, 70%, 43%
CMYK
3, 0, 82, 27
Luminance
0.4505
Every format
| HEX | #b5ba21 |
| RGB | rgb(181, 186, 33) |
| HSL | hsl(62, 70%, 43%) |
| CMYK | cmyk(3%, 0%, 82%, 27%) |
| LAB | lab(72.9 -18.6 68.9) |
| LCH | lch(72.9 71.3 105.1) |
| OKLCH | oklch(0.760 0.160 111.7) |
Copy-ready code
/* CSS */
color: #b5ba21;
background-color: #b5ba21;
/* Tailwind (arbitrary) */
class="text-[#b5ba21] bg-[#b5ba21]"
/* SCSS */
$brand: #b5ba21;
/* SwiftUI */
Color(red: 0.710, green: 0.729, blue: 0.129)
/* Android */
Color.parseColor("#b5ba21")Accessibility — WCAG contrast
Aa
#b5ba21 on white: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#b5ba21 on black: 10.01:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red71.0%
Green72.9%
Blue12.9%
CMYK percentages
Cyan2.7%
Magenta0.0%
Yellow82.3%
Key (black)27.1%
Color previews
#b5ba21 text on a black background
contrast 10.01:1
Card sample
#b5ba21 text on a white background
contrast 2.10:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #b5ba21;
Background color
Panel with #b5ba21 background
background-color: #b5ba21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #b5ba21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(181, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(181, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b5ba21; background: linear-gradient(135deg, #b5ba21, #4FBA21);