Skip to content

#6c780c

a dark, electric yellow · cool · closest name: olive

RGB
108, 120, 12
HSL
67°, 82%, 26%
CMYK
10, 0, 90, 53
Luminance
0.1665

Every format

HEX#6c780c
RGBrgb(108, 120, 12)
HSLhsl(67, 82%, 26%)
CMYKcmyk(10%, 0%, 90%, 53%)
LABlab(47.8 -17.7 50.5)
LCHlch(47.8 53.5 109.3)
OKLCHoklch(0.544 0.121 116.6)

Copy-ready code

/* CSS */
color: #6c780c;
background-color: #6c780c;
/* Tailwind (arbitrary) */
class="text-[#6c780c] bg-[#6c780c]"
/* SCSS */
$brand: #6c780c;
/* SwiftUI */
Color(red: 0.424, green: 0.471, blue: 0.047)
/* Android */
Color.parseColor("#6c780c")

Accessibility — WCAG contrast

Aa
#6c780c on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#6c780c on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red42.4%
Green47.1%
Blue4.7%

CMYK percentages

Cyan10.0%
Magenta0.0%
Yellow90.0%
Key (black)52.9%

Color previews

#6c780c text on a black background

contrast 4.33:1

Card sample

#6c780c text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6c780c;
Background color
Panel with #6c780c background
background-color: #6c780c;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6c780c;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(108, 120, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(108, 120, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6c780c;
background: linear-gradient(135deg, #6c780c, #24780C);

Monochromatic scale

Palettes built from #6c780c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #6c780c in the Color Lab