#d7eb1f
a balanced, electric yellow · cool · closest name: yellow
RGB
215, 235, 31
HSL
66°, 84%, 52%
CMYK
9, 0, 87, 8
Luminance
0.7396
Every format
| HEX | #d7eb1f |
| RGB | rgb(215, 235, 31) |
| HSL | hsl(66, 84%, 52%) |
| CMYK | cmyk(9%, 0%, 87%, 8%) |
| LAB | lab(88.9 -28.1 83.6) |
| LCH | lch(88.9 88.2 108.6) |
| OKLCH | oklch(0.895 0.199 115.9) |
Copy-ready code
/* CSS */
color: #d7eb1f;
background-color: #d7eb1f;
/* Tailwind (arbitrary) */
class="text-[#d7eb1f] bg-[#d7eb1f]"
/* SCSS */
$brand: #d7eb1f;
/* SwiftUI */
Color(red: 0.843, green: 0.922, blue: 0.122)
/* Android */
Color.parseColor("#d7eb1f")Accessibility — WCAG contrast
Aa
#d7eb1f on white: 1.33:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#d7eb1f on black: 15.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red84.3%
Green92.2%
Blue12.2%
CMYK percentages
Cyan8.5%
Magenta0.0%
Yellow86.8%
Key (black)7.8%
Color previews
#d7eb1f text on a black background
contrast 15.79:1
Card sample
#d7eb1f text on a white background
contrast 1.33:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #d7eb1f;
Background color
Panel with #d7eb1f background
background-color: #d7eb1f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #d7eb1f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(215, 235, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(215, 235, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d7eb1f; background: linear-gradient(135deg, #d7eb1f, #4FEB1F);