#F0FA97#F0FA97

#F0FA97 is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.6% C 0.123 H 113.4°. Best body text is #000000 at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#F0FA97
RGBrgb(240, 250, 151)
HSLhsl(66, 91%, 79%)
HSVhsv(66, 40%, 98%)
CMYKcmyk(4%, 0%, 39.6%, 2%)
CIE-LABlab(95.64, -17.70, 46.32)
CIE-LCHlch(95.64, 49.59, 110.91°)
OKLaboklab(95.62% -0.0489 0.1127)
OKLCHoklch(95.62% 0.123 113.4)
XYZxyz(75.7074, 89.1319, 42.4881)
Luminance0.8913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0FA97 #A197FA
analogous
#FAD297 #F0FA97 #BEFA97
triadic
#F0FA97 #97F0FA #FA97F0
tetradic
#F0FA97 #97FAD2 #A197FA #FA97BE
square
#F0FA97 #97FAD2 #A197FA #FA97BE
split-complementary
#F0FA97 #97BEFA #D297FA
monochromatic
#DFF422 #E8F75D #F0FA97 #F8FDD1 #FBFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0FA97#FFFFFF#000000##000000
##F0FA971.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)
#FFF18F
Deuteranopia (green-blind)
#FFF49C
Tritanopia (blue-blind)
#FBEFE2
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f0fa97;
/* rgb */ color: rgb(240, 250, 151);
/* oklch */ color: oklch(95.6% 0.123 113.4);
Tailwind
colors: {
  custom: {
    50: '#f6fbb7',
    500: '#f0fa97',
    950: '#000000',
  },
}
SCSS
$custom: #f0fa97;
$custom-light: #f6fbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f0fa97",
  "rgb": {
    "r": 240,
    "g": 250,
    "b": 151
  },
  "hsl": {
    "h": 66.061,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.95617,
    "c": 0.12289,
    "h": 113.4
  },
  "luminance": 0.89131
}

Semantic roles & 50–950 ramp

primary
#F0FA97
secondary
#685BDA
accent
#00E617
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F0FA97

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

Preview Lab → · Contrast checker → · Palette generator →

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