#F2FA97#F2FA97

#F2FA97 is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 95.8% C 0.123 H 112.5°. Best body text is #000000 at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#F2FA97
RGBrgb(242, 250, 151)
HSLhsl(65, 91%, 79%)
HSVhsv(65, 40%, 98%)
CMYKcmyk(3.2%, 0%, 39.6%, 2%)
CIE-LABlab(95.78, -16.94, 46.54)
CIE-LCHlch(95.78, 49.53, 110.01°)
OKLaboklab(95.77% -0.0468 0.1132)
OKLCHoklch(95.77% 0.123 112.5)
XYZxyz(76.3903, 89.4840, 42.5201)
Luminance0.8948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FA97 #9F97FA
analogous
#FAD097 #F2FA97 #C0FA97
triadic
#F2FA97 #97F2FA #FA97F2
tetradic
#F2FA97 #97FAD0 #9F97FA #FA97C0
square
#F2FA97 #97FAD0 #9F97FA #FA97C0
split-complementary
#F2FA97 #97C0FA #D097FA
monochromatic
#E3F422 #EBF75D #F2FA97 #F9FDD1 #FBFEE2

Accessibility & contrast

On white

1.11
#F2FA97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.90
#F2FA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FA97
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FA97#FFFFFF#000000##000000
##F2FA971.001.1118.9018.90
#FFFFFF1.111.0021.0021.00
#00000018.9021.001.001.00
##00000018.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF49C
Tritanopia (blue-blind)
#FDEFE2
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #f2fa97;
/* rgb */ color: rgb(242, 250, 151);
/* oklch */ color: oklch(95.8% 0.123 112.5);
Tailwind
colors: {
  custom: {
    50: '#f8fbb7',
    500: '#f2fa97',
    950: '#000000',
  },
}
SCSS
$custom: #f2fa97;
$custom-light: #f8fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fa97",
  "rgb": {
    "r": 242,
    "g": 250,
    "b": 151
  },
  "hsl": {
    "h": 64.848,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.9577,
    "c": 0.12252,
    "h": 112.5
  },
  "luminance": 0.89483
}

Semantic roles & 50–950 ramp

primary
#F2FA97
secondary
#655BDA
accent
#00E613
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2FA97

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

Preview Lab → · Contrast checker → · Palette generator →

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