Skip to content

#c0c01a

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

RGB
192, 192, 26
HSL
60°, 76%, 43%
CMYK
0, 0, 87, 25
Luminance
0.4898

Every format

HEX#c0c01a
RGBrgb(192, 192, 26)
HSLhsl(60, 76%, 43%)
CMYKcmyk(0%, 0%, 87%, 25%)
LABlab(75.4 -17.0 72.9)
LCHlch(75.4 74.9 103.2)
OKLCHoklch(0.782 0.165 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0c01a on white: 1.95:1
AA ✗ fail · AA-large · AAA
Aa
#c0c01a on black: 10.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green75.3%
Blue10.2%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow86.5%
Key (black)24.7%

Color previews

#c0c01a text on a black background

contrast 10.80:1

Card sample

#c0c01a text on a white background

contrast 1.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 192, 26, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 192, 26, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0c01a;
background: linear-gradient(135deg, #c0c01a, #51C01A);

Monochromatic scale

Palettes built from #c0c01a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0c01a in the Color Lab