Skip to content

#c2cd7f

a light, soft yellow · cool · closest name: khaki

RGB
194, 205, 127
HSL
69°, 44%, 65%
CMYK
5, 0, 38, 20
Luminance
0.5666

Every format

HEX#c2cd7f
RGBrgb(194, 205, 127)
HSLhsl(69, 44%, 65%)
CMYKcmyk(5%, 0%, 38%, 20%)
LABlab(80.0 -15.8 37.6)
LCHlch(80.0 40.8 112.8)
OKLCHoklch(0.822 0.102 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red76.1%
Green80.4%
Blue49.8%

CMYK percentages

Cyan5.4%
Magenta0.0%
Yellow38.0%
Key (black)19.6%

Color previews

#c2cd7f text on a black background

contrast 12.33:1

Card sample

#c2cd7f text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(194, 205, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(194, 205, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c2cd7f;
background: linear-gradient(135deg, #c2cd7f, #8ECD7F);

Monochromatic scale

Palettes built from #c2cd7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c2cd7f in the Color Lab