Skip to content

#cfd270

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

RGB
207, 210, 112
HSL
62°, 52%, 63%
CMYK
1, 0, 47, 18
Luminance
0.6053

Every format

HEX#cfd270
RGBrgb(207, 210, 112)
HSLhsl(62, 52%, 63%)
CMYKcmyk(1%, 0%, 47%, 18%)
LABlab(82.1 -14.8 47.9)
LCHlch(82.1 50.1 107.2)
OKLCHoklch(0.841 0.122 110.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd270 on white: 1.60:1
AA ✗ fail · AA-large · AAA
Aa
#cfd270 on black: 13.11:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green82.4%
Blue43.9%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow46.7%
Key (black)17.6%

Color previews

#cfd270 text on a black background

contrast 13.11:1

Card sample

#cfd270 text on a white background

contrast 1.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 210, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 210, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfd270;
background: linear-gradient(135deg, #cfd270, #8ED270);

Monochromatic scale

Palettes built from #cfd270

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfd270 in the Color Lab