Skip to content

#f2ffb8

a pale, electric green · cool · closest name: khaki

RGB
242, 255, 184
HSL
71°, 100%, 86%
CMYK
5, 0, 28, 0
Luminance
0.9386

Every format

HEX#f2ffb8
RGBrgb(242, 255, 184)
HSLhsl(71, 100%, 86%)
CMYKcmyk(5%, 0%, 28%, 0%)
LABlab(97.6 -15.4 32.6)
LCHlch(97.6 36.1 115.4)
OKLCHoklch(0.974 0.091 116.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ffb8 on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#f2ffb8 on black: 19.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green100.0%
Blue72.2%

CMYK percentages

Cyan5.1%
Magenta0.0%
Yellow27.8%
Key (black)0.0%

Color previews

#f2ffb8 text on a black background

contrast 19.77:1

Card sample

#f2ffb8 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ffb8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ffb8 in the Color Lab