#F2FB97#F2FB97

#F2FB97 is a very light, vivid yellow. Relative luminance 0.901; OKLCH L 96.0% C 0.124 H 112.9°. Best body text is #000000 at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#F2FB97
RGBrgb(242, 251, 151)
HSLhsl(65, 93%, 79%)
HSVhsv(65, 40%, 98%)
CMYKcmyk(3.6%, 0%, 39.8%, 1.6%)
CIE-LABlab(96.04, -17.43, 46.87)
CIE-LCHlch(96.04, 50.00, 110.40°)
OKLaboklab(95.98% -0.0482 0.114)
OKLCHoklch(95.98% 0.124 112.9)
XYZxyz(76.7018, 90.1071, 42.6239)
Luminance0.9011 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FB97 #A097FB
analogous
#FBD297 #F2FB97 #C0FB97
triadic
#F2FB97 #97F2FB #FB97F2
tetradic
#F2FB97 #97FBD2 #A097FB #FB97C0
square
#F2FB97 #97FBD2 #A097FB #FB97C0
split-complementary
#F2FB97 #97C0FB #D297FB
monochromatic
#E3F621 #EBF95C #F2FB97 #F9FDD2 #FBFEE2

Accessibility & contrast

On white

1.10
#F2FB97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.02
#F2FB97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FB97
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FB97#FFFFFF#000000##000000
##F2FB971.001.1019.0219.02
#FFFFFF1.101.0021.0021.00
#00000019.0221.001.001.00
##00000019.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF59C
Tritanopia (blue-blind)
#FDF0E3
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #f2fb97;
/* rgb */ color: rgb(242, 251, 151);
/* oklch */ color: oklch(96.0% 0.124 112.9);
Tailwind
colors: {
  custom: {
    50: '#f8fcb7',
    500: '#f2fb97',
    950: '#000000',
  },
}
SCSS
$custom: #f2fb97;
$custom-light: #f8fcb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fb97",
  "rgb": {
    "r": 242,
    "g": 251,
    "b": 151
  },
  "hsl": {
    "h": 65.4,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.95976,
    "c": 0.12374,
    "h": 112.9
  },
  "luminance": 0.90106
}

Semantic roles & 50–950 ramp

primary
#F2FB97
secondary
#665ADC
accent
#00E615
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2FB97

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

Preview Lab → · Contrast checker → · Palette generator →

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