#F2F7BF#F2F7BF

#F2F7BF is a very light, moderate yellow. Relative luminance 0.892; OKLCH L 95.9% C 0.072 H 111.9°. Best body text is #000000 at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#F2F7BF
RGBrgb(242, 247, 191)
HSLhsl(65, 78%, 86%)
HSVhsv(65, 23%, 97%)
CMYKcmyk(2%, 0%, 22.7%, 3.1%)
CIE-LABlab(95.65, -10.57, 26.45)
CIE-LCHlch(95.65, 28.48, 111.79°)
OKLaboklab(95.87% -0.027 0.0671)
OKLCHoklch(95.87% 0.072 111.9)
XYZxyz(79.2822, 89.1611, 62.3133)
Luminance0.8916 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F7BF #C4BFF7
analogous
#F7E0BF #F2F7BF #D6F7BF
triadic
#F2F7BF #BFF2F7 #F7BFF2
tetradic
#F2F7BF #BFF7E0 #C4BFF7 #F7BFD6
square
#F2F7BF #BFF7E0 #C4BFF7 #F7BFD6
split-complementary
#F2F7BF #BFD6F7 #E0BFF7
monochromatic
#DCE952 #E7F089 #F2F7BF #F9FCE4 #F9FCE4

Accessibility & contrast

On white

1.12
#F2F7BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.83
#F2F7BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F7BF
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F7BF#FFFFFF#000000##000000
##F2F7BF1.001.1218.8318.83
#FFFFFF1.121.0021.0021.00
#00000018.8321.001.001.00
##00000018.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2BB
Deuteranopia (green-blind)
#FFF3C1
Tritanopia (blue-blind)
#F9F0E8
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f2f7bf;
/* rgb */ color: rgb(242, 247, 191);
/* oklch */ color: oklch(95.9% 0.072 111.9);
Tailwind
colors: {
  custom: {
    50: '#f6f9d2',
    500: '#f2f7bf',
    950: '#000000',
  },
}
SCSS
$custom: #f2f7bf;
$custom-light: #f6f9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f7bf",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 191
  },
  "hsl": {
    "h": 65.357,
    "s": 77.778,
    "l": 85.882
  },
  "oklch": {
    "l": 0.95872,
    "c": 0.07234,
    "h": 111.9
  },
  "luminance": 0.8916
}

Semantic roles & 50–950 ramp

primary
#F2F7BF
secondary
#8881DA
accent
#0BDA1E
background
#FFFFFE
surface
#FEFFFB
border
#D6D7D4
text
#171714
muted
#858583

Preview Lab

Preview with #F2F7BF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F2F7BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva