Skip to content

#c0cd5f

a balanced, vivid yellow · cool · closest name: khaki

RGB
192, 205, 95
HSL
67°, 52%, 59%
CMYK
6, 0, 54, 20
Luminance
0.5570

Every format

HEX#c0cd5f
RGBrgb(192, 205, 95)
HSLhsl(67, 52%, 59%)
CMYKcmyk(6%, 0%, 54%, 20%)
LABlab(79.4 -19.9 52.5)
LCHlch(79.4 56.1 110.7)
OKLCHoklch(0.816 0.136 115.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0cd5f on white: 1.73:1
AA ✗ fail · AA-large · AAA
Aa
#c0cd5f on black: 12.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green80.4%
Blue37.3%

CMYK percentages

Cyan6.3%
Magenta0.0%
Yellow53.7%
Key (black)19.6%

Color previews

#c0cd5f text on a black background

contrast 12.14:1

Card sample

#c0cd5f text on a white background

contrast 1.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 205, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 205, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0cd5f;
background: linear-gradient(135deg, #c0cd5f, #77CD5F);

Monochromatic scale

Palettes built from #c0cd5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0cd5f in the Color Lab