Skip to content

#ddf271

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

RGB
221, 242, 113
HSL
70°, 83%, 70%
CMYK
9, 0, 53, 5
Luminance
0.8007

Every format

HEX#ddf271
RGBrgb(221, 242, 113)
HSLhsl(70, 83%, 70%)
CMYKcmyk(9%, 0%, 53%, 5%)
LABlab(91.7 -24.8 59.0)
LCHlch(91.7 64.0 112.8)
OKLCHoklch(0.920 0.156 117.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddf271 on white: 1.23:1
AA ✗ fail · AA-large · AAA
Aa
#ddf271 on black: 17.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green94.9%
Blue44.3%

CMYK percentages

Cyan8.7%
Magenta0.0%
Yellow53.3%
Key (black)5.1%

Color previews

#ddf271 text on a black background

contrast 17.01:1

Card sample

#ddf271 text on a white background

contrast 1.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 242, 113, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 242, 113, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddf271;
background: linear-gradient(135deg, #ddf271, #87F271);

Monochromatic scale

Palettes built from #ddf271

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf271 in the Color Lab