Skip to content

#c0cf5f

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

RGB
192, 207, 95
HSL
68°, 54%, 59%
CMYK
7, 0, 54, 19
Luminance
0.5666

Every format

HEX#c0cf5f
RGBrgb(192, 207, 95)
HSLhsl(68, 54%, 59%)
CMYKcmyk(7%, 0%, 54%, 19%)
LABlab(80.0 -20.8 53.1)
LCHlch(80.0 57.0 111.4)
OKLCHoklch(0.820 0.138 115.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0cf5f on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#c0cf5f on black: 12.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green81.2%
Blue37.3%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow54.1%
Key (black)18.8%

Color previews

#c0cf5f text on a black background

contrast 12.33:1

Card sample

#c0cf5f text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c0cf5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0cf5f in the Color Lab