Skip to content

#def0b2

a light, vivid green · cool · closest name: khaki

RGB
222, 240, 178
HSL
77°, 67%, 82%
CMYK
8, 0, 26, 6
Luminance
0.8106

Every format

HEX#def0b2
RGBrgb(222, 240, 178)
HSLhsl(77, 67%, 82%)
CMYKcmyk(8%, 0%, 26%, 6%)
LABlab(92.2 -16.1 28.1)
LCHlch(92.2 32.4 119.9)
OKLCHoklch(0.927 0.083 121.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def0b2 on white: 1.22:1
AA ✗ fail · AA-large · AAA
Aa
#def0b2 on black: 17.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green94.1%
Blue69.8%

CMYK percentages

Cyan7.5%
Magenta0.0%
Yellow25.8%
Key (black)5.9%

Color previews

#def0b2 text on a black background

contrast 17.21:1

Card sample

#def0b2 text on a white background

contrast 1.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(222, 240, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 240, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def0b2;
background: linear-gradient(135deg, #def0b2, #B5F0B2);

Monochromatic scale

Palettes built from #def0b2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def0b2 in the Color Lab