Skip to content

#def30c

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

RGB
222, 243, 12
HSL
66°, 91%, 50%
CMYK
9, 0, 95, 5
Luminance
0.7966

Every format

HEX#def30c
RGBrgb(222, 243, 12)
HSLhsl(66, 91%, 50%)
CMYKcmyk(9%, 0%, 95%, 5%)
LABlab(91.5 -29.3 88.3)
LCHlch(91.5 93.1 108.3)
OKLCHoklch(0.917 0.208 116.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#def30c on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#def30c on black: 16.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.1%
Green95.3%
Blue4.7%

CMYK percentages

Cyan8.6%
Magenta0.0%
Yellow95.1%
Key (black)4.7%

Color previews

#def30c text on a black background

contrast 16.93:1

Card sample

#def30c text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #def30c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #def30c in the Color Lab