#F2FA87#F2FA87

#F2FA87 is a very light, vivid yellow. Relative luminance 0.890; OKLCH L 95.5% C 0.139 H 112.3°. Best body text is #000000 at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#F2FA87
RGBrgb(242, 250, 135)
HSLhsl(64, 92%, 75%)
HSVhsv(64, 46%, 98%)
CMYKcmyk(3.2%, 0%, 46%, 2%)
CIE-LABlab(95.58, -18.55, 53.91)
CIE-LCHlch(95.58, 57.01, 108.98°)
OKLaboklab(95.54% -0.0527 0.1287)
OKLCHoklch(95.54% 0.139 112.3)
XYZxyz(75.1779, 88.9990, 36.1352)
Luminance0.8900 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2FA87 #8F87FA
analogous
#FAC887 #F2FA87 #B8FA87
triadic
#F2FA87 #87F2FA #FA87F2
tetradic
#F2FA87 #87FAC8 #8F87FA #FA87B8
square
#F2FA87 #87FAC8 #8F87FA #FA87B8
split-complementary
#F2FA87 #87B8FA #C887FA
monochromatic
#E5F511 #ECF84C #F2FA87 #F8FCC2 #FCFEE2

Accessibility & contrast

On white

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

On black

18.80
#F2FA87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2FA87
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2FA87#FFFFFF#000000##000000
##F2FA871.001.1218.8018.80
#FFFFFF1.121.0021.0021.00
#00000018.8021.001.001.00
##00000018.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF17D
Deuteranopia (green-blind)
#FFF48D
Tritanopia (blue-blind)
#FFEEDF
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f2fa87;
/* rgb */ color: rgb(242, 250, 135);
/* oklch */ color: oklch(95.5% 0.139 112.3);
Tailwind
colors: {
  custom: {
    50: '#f8fbac',
    500: '#f2fa87',
    950: '#000000',
  },
}
SCSS
$custom: #f2fa87;
$custom-light: #f8fbac;
$custom-dark: #000000;
JSON
{
  "hex": "#f2fa87",
  "rgb": {
    "r": 242,
    "g": 250,
    "b": 135
  },
  "hsl": {
    "h": 64.174,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.95543,
    "c": 0.13909,
    "h": 112.3
  },
  "luminance": 0.88998
}

Semantic roles & 50–950 ramp

primary
#F2FA87
secondary
#574DD8
accent
#00E610
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#171710
muted
#858581

Preview Lab

Preview with #F2FA87

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

Preview Lab → · Contrast checker → · Palette generator →

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