#768021
a dark, vivid yellow · cool · closest name: olive
RGB
118, 128, 33
HSL
66°, 59%, 32%
CMYK
8, 0, 74, 50
Luminance
0.1940
Every format
| HEX | #768021 |
| RGB | rgb(118, 128, 33) |
| HSL | hsl(66, 59%, 32%) |
| CMYK | cmyk(8%, 0%, 74%, 50%) |
| LAB | lab(51.1 -16.5 47.3) |
| LCH | lch(51.1 50.1 109.2) |
| OKLCH | oklch(0.573 0.116 115.4) |
Copy-ready code
/* CSS */
color: #768021;
background-color: #768021;
/* Tailwind (arbitrary) */
class="text-[#768021] bg-[#768021]"
/* SCSS */
$brand: #768021;
/* SwiftUI */
Color(red: 0.463, green: 0.502, blue: 0.129)
/* Android */
Color.parseColor("#768021")Accessibility — WCAG contrast
Aa
#768021 on white: 4.30:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#768021 on black: 4.88:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red46.3%
Green50.2%
Blue12.9%
CMYK percentages
Cyan7.8%
Magenta0.0%
Yellow74.2%
Key (black)49.8%
Color previews
#768021 text on a black background
contrast 4.88:1
Card sample
#768021 text on a white background
contrast 4.30:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #768021;
Background color
Panel with #768021 background
background-color: #768021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #768021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(118, 128, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(118, 128, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #768021; background: linear-gradient(135deg, #768021, #378021);