Skip to content

#f0f6f2

a pale, soft green · cool · closest name: white

RGB
240, 246, 242
HSL
140°, 25%, 95%
CMYK
2, 0, 2, 4
Luminance
0.9085

Every format

HEX#f0f6f2
RGBrgb(240, 246, 242)
HSLhsl(140, 25%, 95%)
CMYKcmyk(2%, 0%, 2%, 4%)
LABlab(96.3 -2.7 1.2)
LCHlch(96.3 3.0 155.4)
OKLCHoklch(0.968 0.008 157.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f6f2 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#f0f6f2 on black: 19.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green96.5%
Blue94.9%

CMYK percentages

Cyan2.4%
Magenta0.0%
Yellow1.6%
Key (black)3.5%

Color previews

#f0f6f2 text on a black background

contrast 19.17:1

Card sample

#f0f6f2 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f6f2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f6f2 in the Color Lab