#F2F87E#F2F87E

#F2F87E is a very light, vivid yellow. Relative luminance 0.875; OKLCH L 95.0% C 0.146 H 111.4°. Best body text is #000000 at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#F2F87E
RGBrgb(242, 248, 126)
HSLhsl(63, 90%, 73%)
HSVhsv(63, 49%, 97%)
CMYKcmyk(2.4%, 0%, 49.2%, 2.7%)
CIE-LABlab(94.96, -18.39, 57.33)
CIE-LCHlch(94.96, 60.21, 107.79°)
OKLaboklab(95.01% -0.0531 0.1355)
OKLCHoklch(95.01% 0.146 111.4)
XYZxyz(73.9527, 87.5199, 32.7319)
Luminance0.8752 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87E #847EF8
analogous
#F8C17E #F2F87E #B5F87E
triadic
#F2F87E #7EF2F8 #F87EF2
tetradic
#F2F87E #7EF8C1 #847EF8 #F87EB5
square
#F2F87E #7EF8C1 #847EF8 #F87EB5
split-complementary
#F2F87E #7EB5F8 #C17EF8
monochromatic
#E4EF0D #ECF544 #F2F87E #F8FBB8 #FCFDE2

Accessibility & contrast

On white

1.13
#F2F87E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.50
#F2F87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F87E
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F87E#FFFFFF#000000##000000
##F2F87E1.001.1318.5018.50
#FFFFFF1.131.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF73
Deuteranopia (green-blind)
#FFF284
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f87e;
/* rgb */ color: rgb(242, 248, 126);
/* oklch */ color: oklch(95.0% 0.146 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa6',
    500: '#f2f87e',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87e;
$custom-light: #f8faa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87e",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 126
  },
  "hsl": {
    "h": 62.951,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.95014,
    "c": 0.14555,
    "h": 111.4
  },
  "luminance": 0.87518
}

Semantic roles & 50–950 ramp

primary
#F2F87E
secondary
#4D46D5
accent
#00E60B
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#171710
muted
#858580

Preview Lab

Preview with #F2F87E

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

Preview Lab → · Contrast checker → · Palette generator →

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