#F2F997#F2F997

#F2F997 is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.6% C 0.121 H 112.0°. Best body text is #000000 at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#F2F997
RGBrgb(242, 249, 151)
HSLhsl(64, 89%, 78%)
HSVhsv(64, 39%, 98%)
CMYKcmyk(2.8%, 0%, 39.4%, 2.4%)
CIE-LABlab(95.52, -16.46, 46.21)
CIE-LCHlch(95.52, 49.06, 109.60°)
OKLaboklab(95.56% -0.0454 0.1125)
OKLCHoklch(95.56% 0.121 112)
XYZxyz(76.0804, 88.8641, 42.4168)
Luminance0.8886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F997 #9E97F9
analogous
#F9CF97 #F2F997 #C1F997
triadic
#F2F997 #97F2F9 #F997F2
tetradic
#F2F997 #97F9CF #9E97F9 #F997C1
square
#F2F997 #97F9CF #9E97F9 #F997C1
split-complementary
#F2F997 #97C1F9 #CF97F9
monochromatic
#E4F223 #EBF65D #F2F997 #F9FCD1 #FBFDE2

Accessibility & contrast

On white

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

On black

18.77
#F2F997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F997
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F997#FFFFFF#000000##000000
##F2F9971.001.1218.7718.77
#FFFFFF1.121.0021.0021.00
#00000018.7721.001.001.00
##00000018.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF18F
Deuteranopia (green-blind)
#FFF39B
Tritanopia (blue-blind)
#FEEEE1
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f2f997;
/* rgb */ color: rgb(242, 249, 151);
/* oklch */ color: oklch(95.6% 0.121 112.0);
Tailwind
colors: {
  custom: {
    50: '#f8fbb7',
    500: '#f2f997',
    950: '#000000',
  },
}
SCSS
$custom: #f2f997;
$custom-light: #f8fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f997",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 64.286,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.95564,
    "c": 0.12131,
    "h": 112
  },
  "luminance": 0.88863
}

Semantic roles & 50–950 ramp

primary
#F2F997
secondary
#645BD9
accent
#00E610
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F997

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

Preview Lab → · Contrast checker → · Palette generator →

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