#F2F7F2

A color in the Green family

#f2f7f2 is a color in the Green family: RGB(242, 247, 242), HSL(120°, 24%, 96%), CMYK(2%, 0%, 2%, 3%). Closest named color: whitesmoke. Contrast is 1.08:1 on white and 19.36:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#f2f7f2
RGBrgb(242 247 242)
RGB (legacy)rgb(242, 247, 242)
RGB %rgb(95% 97% 95%)
HSLhsl(120 24% 96%)
HSV / HSBhsv(120, 2%, 97%)
HWBhwb(120 95% 3%)
CMYKcmyk(2%, 0%, 2%, 3%)
CIELAB (D50)lab(96.75 -2.37 1.8)
LCHlch(96.75 2.98 142.83)
OKLaboklab(0.971 -0.007 0.0048)
OKLCHoklch(0.971 0.0084 145.51)
Decimal15923186

Properties

Color ToneGreen
Closest named colorwhitesmoke ΔE 0.8
Closest web-safe color#ffffff
Hue120°
Saturation (HSL / HSV)24% / 2%
Lightness (HSL)96%
Brightness or Value (HSV)97%
Luminance (Rec.601 / Rec.709)96% / 96%
Relative luminance (WCAG)0.9181
Red / Green / Blue242 / 247 / 242

WCAG 2.2 Contrast Ratio

On White (#ffffff)
1.08:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
On Black (#000000)
19.36:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 0 / -101.7 · As background with white / black text: Lc 0 / 100.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #f2f7f2;
  --color-brand-oklch: oklch(97.1% 0.0084 145.51);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(242 247 242 / 50%); }
/* Tailwind CSS */
<div class="bg-[#f2f7f2] text-[#f2f7f2] border-[#f2f7f2]">