#6baf21
a dark, vivid green · cool · closest name: olivedrab
RGB
107, 175, 33
HSL
89°, 68%, 41%
CMYK
39, 0, 81, 31
Luminance
0.3390
Every format
| HEX | #6baf21 |
| RGB | rgb(107, 175, 33) |
| HSL | hsl(89, 68%, 41%) |
| CMYK | cmyk(39%, 0%, 81%, 31%) |
| LAB | lab(64.9 -43.2 59.9) |
| LCH | lch(64.9 73.9 125.8) |
| OKLCH | oklch(0.683 0.180 132.8) |
Copy-ready code
/* CSS */
color: #6baf21;
background-color: #6baf21;
/* Tailwind (arbitrary) */
class="text-[#6baf21] bg-[#6baf21]"
/* SCSS */
$brand: #6baf21;
/* SwiftUI */
Color(red: 0.420, green: 0.686, blue: 0.129)
/* Android */
Color.parseColor("#6baf21")Accessibility — WCAG contrast
Aa
#6baf21 on white: 2.70:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#6baf21 on black: 7.78:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red42.0%
Green68.6%
Blue12.9%
CMYK percentages
Cyan38.9%
Magenta0.0%
Yellow81.1%
Key (black)31.4%
Color previews
#6baf21 text on a black background
contrast 7.78:1
Card sample
#6baf21 text on a white background
contrast 2.70:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #6baf21;
Background color
Panel with #6baf21 background
background-color: #6baf21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #6baf21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(107, 175, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(107, 175, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6baf21; background: linear-gradient(135deg, #6baf21, #21AF36);