#cdf31f
a balanced, electric green · cool · closest name: yellow
RGB
205, 243, 31
HSL
71°, 90%, 54%
CMYK
16, 0, 87, 5
Luminance
0.7718
Every format
| HEX | #cdf31f |
| RGB | rgb(205, 243, 31) |
| HSL | hsl(71, 90%, 54%) |
| CMYK | cmyk(16%, 0%, 87%, 5%) |
| LAB | lab(90.4 -35.8 84.6) |
| LCH | lch(90.4 91.8 113.0) |
| OKLCH | oklch(0.905 0.211 120.6) |
Copy-ready code
/* CSS */
color: #cdf31f;
background-color: #cdf31f;
/* Tailwind (arbitrary) */
class="text-[#cdf31f] bg-[#cdf31f]"
/* SCSS */
$brand: #cdf31f;
/* SwiftUI */
Color(red: 0.804, green: 0.953, blue: 0.122)
/* Android */
Color.parseColor("#cdf31f")Accessibility — WCAG contrast
Aa
#cdf31f on white: 1.28:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#cdf31f on black: 16.44:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red80.4%
Green95.3%
Blue12.2%
CMYK percentages
Cyan15.6%
Magenta0.0%
Yellow87.2%
Key (black)4.7%
Color previews
#cdf31f text on a black background
contrast 16.44:1
Card sample
#cdf31f text on a white background
contrast 1.28:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #cdf31f;
Background color
Panel with #cdf31f background
background-color: #cdf31f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #cdf31f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(205, 243, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(205, 243, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cdf31f; background: linear-gradient(135deg, #cdf31f, #3FF31F);