#768c21
a dark, vivid green · cool · closest name: olivedrab
RGB
118, 140, 33
HSL
72°, 62%, 34%
CMYK
16, 0, 76, 45
Luminance
0.2272
Every format
| HEX | #768c21 |
| RGB | rgb(118, 140, 33) |
| HSL | hsl(72, 62%, 34%) |
| CMYK | cmyk(16%, 0%, 76%, 45%) |
| LAB | lab(54.8 -22.7 50.8) |
| LCH | lch(54.8 55.6 114.1) |
| OKLCH | oklch(0.602 0.131 120.8) |
Copy-ready code
/* CSS */
color: #768c21;
background-color: #768c21;
/* Tailwind (arbitrary) */
class="text-[#768c21] bg-[#768c21]"
/* SCSS */
$brand: #768c21;
/* SwiftUI */
Color(red: 0.463, green: 0.549, blue: 0.129)
/* Android */
Color.parseColor("#768c21")Accessibility — WCAG contrast
Aa
#768c21 on white: 3.79:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#768c21 on black: 5.54:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red46.3%
Green54.9%
Blue12.9%
CMYK percentages
Cyan15.7%
Magenta0.0%
Yellow76.4%
Key (black)45.1%
Color previews
#768c21 text on a black background
contrast 5.54:1
Card sample
#768c21 text on a white background
contrast 3.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #768c21;
Background color
Panel with #768c21 background
background-color: #768c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #768c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(118, 140, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(118, 140, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #768c21; background: linear-gradient(135deg, #768c21, #2F8C21);