Skip to content

#f2ffad

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

RGB
242, 255, 173
HSL
70°, 100%, 84%
CMYK
5, 0, 32, 0
Luminance
0.9341

Every format

HEX#f2ffad
RGBrgb(242, 255, 173)
HSLhsl(70, 100%, 84%)
CMYKcmyk(5%, 0%, 32%, 0%)
LABlab(97.4 -16.9 37.8)
LCHlch(97.4 41.4 114.0)
OKLCHoklch(0.972 0.104 115.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ffad on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f2ffad on black: 19.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green100.0%
Blue67.8%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow32.2%
Key (black)0.0%

Color previews

#f2ffad text on a black background

contrast 19.68:1

Card sample

#f2ffad text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 255, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 255, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ffad;
background: linear-gradient(135deg, #f2ffad, #BBFFAD);

Monochromatic scale

Palettes built from #f2ffad

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ffad in the Color Lab