Skip to content

#cfd261

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

RGB
207, 210, 97
HSL
62°, 56%, 60%
CMYK
1, 0, 54, 18
Luminance
0.6022

Every format

HEX#cfd261
RGBrgb(207, 210, 97)
HSLhsl(62, 56%, 60%)
CMYKcmyk(1%, 0%, 54%, 18%)
LABlab(82.0 -16.1 54.7)
LCHlch(82.0 57.1 106.4)
OKLCHoklch(0.839 0.136 110.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfd261 on white: 1.61:1
AA ✗ fail · AA-large · AAA
Aa
#cfd261 on black: 13.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green82.4%
Blue38.0%

CMYK percentages

Cyan1.4%
Magenta0.0%
Yellow53.8%
Key (black)17.6%

Color previews

#cfd261 text on a black background

contrast 13.04:1

Card sample

#cfd261 text on a white background

contrast 1.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cfd261

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfd261 in the Color Lab