#def152
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 241, 82
HSL
67°, 85%, 63%
CMYK
8, 0, 66, 6
Luminance
0.7905
Every format
| HEX | #def152 |
| RGB | rgb(222, 241, 82) |
| HSL | hsl(67, 85%, 63%) |
| CMYK | cmyk(8%, 0%, 66%, 6%) |
| LAB | lab(91.3 -26.1 71.4) |
| LCH | lch(91.3 76.0 110.1) |
| OKLCH | oklch(0.916 0.179 115.9) |
Copy-ready code
/* CSS */
color: #def152;
background-color: #def152;
/* Tailwind (arbitrary) */
class="text-[#def152] bg-[#def152]"
/* SCSS */
$brand: #def152;
/* SwiftUI */
Color(red: 0.871, green: 0.945, blue: 0.322)
/* Android */
Color.parseColor("#def152")Accessibility — WCAG contrast
Aa
#def152 on white: 1.25:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def152 on black: 16.81:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green94.5%
Blue32.2%
CMYK percentages
Cyan7.9%
Magenta0.0%
Yellow66.0%
Key (black)5.5%
Color previews
#def152 text on a black background
contrast 16.81:1
Card sample
#def152 text on a white background
contrast 1.25:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def152;
Background color
Panel with #def152 background
background-color: #def152;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def152;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 241, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 241, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def152; background: linear-gradient(135deg, #def152, #74F152);