#F2FA98#F2FA98

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

Color values

HEX#F2FA98
RGBrgb(242, 250, 152)
HSLhsl(65, 91%, 79%)
HSVhsv(65, 39%, 98%)
CMYKcmyk(3.2%, 0%, 39.2%, 2%)
CIE-LABlab(95.80, -16.84, 46.07)
CIE-LCHlch(95.80, 49.05, 110.08°)
OKLaboklab(95.79% -0.0464 0.1122)
OKLCHoklch(95.79% 0.121 112.5)
XYZxyz(76.4718, 89.5166, 42.9496)
Luminance0.8952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FA98 #A098FA
analogous
#FAD198 #F2FA98 #C1FA98
triadic
#F2FA98 #98F2FA #FA98F2
tetradic
#F2FA98 #98FAD1 #A098FA #FA98C1
square
#F2FA98 #98FAD1 #A098FA #FA98C1
split-complementary
#F2FA98 #98C1FA #D198FA
monochromatic
#E3F423 #EBF75E #F2FA98 #F9FDD2 #FBFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2FA98#FFFFFF#000000##000000
##F2FA981.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)
#FFF290
Deuteranopia (green-blind)
#FFF49C
Tritanopia (blue-blind)
#FDEFE2
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #f2fa98;
/* rgb */ color: rgb(242, 250, 152);
/* oklch */ color: oklch(95.8% 0.121 112.5);
Tailwind
colors: {
  custom: {
    50: '#f7fbb7',
    500: '#f2fa98',
    950: '#000000',
  },
}
SCSS
$custom: #f2fa98;
$custom-light: #f7fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fa98",
  "rgb": {
    "r": 242,
    "g": 250,
    "b": 152
  },
  "hsl": {
    "h": 64.898,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.95785,
    "c": 0.12144,
    "h": 112.5
  },
  "luminance": 0.89515
}

Semantic roles & 50–950 ramp

primary
#F2FA98
secondary
#665CDB
accent
#00E613
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2FA98

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

Preview Lab → · Contrast checker → · Palette generator →

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