Skip to content

#cfdf32

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

RGB
207, 223, 50
HSL
66°, 73%, 54%
CMYK
7, 0, 78, 13
Luminance
0.6627

Every format

HEX#cfdf32
RGBrgb(207, 223, 50)
HSLhsl(66, 73%, 54%)
CMYKcmyk(7%, 0%, 78%, 13%)
LABlab(85.1 -25.2 75.8)
LCHlch(85.1 79.9 108.4)
OKLCHoklch(0.863 0.182 115.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfdf32 on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#cfdf32 on black: 14.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green87.5%
Blue19.6%

CMYK percentages

Cyan7.2%
Magenta0.0%
Yellow77.6%
Key (black)12.5%

Color previews

#cfdf32 text on a black background

contrast 14.25:1

Card sample

#cfdf32 text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 223, 50, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 223, 50, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfdf32;
background: linear-gradient(135deg, #cfdf32, #5CDF32);

Monochromatic scale

Palettes built from #cfdf32

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfdf32 in the Color Lab