#F2F87C#F2F87C

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

Color values

HEX#F2F87C
RGBrgb(242, 248, 124)
HSLhsl(63, 90%, 73%)
HSVhsv(63, 50%, 97%)
CMYKcmyk(2.4%, 0%, 50%, 2.7%)
CIE-LABlab(94.94, -18.56, 58.22)
CIE-LCHlch(94.94, 61.10, 107.69°)
OKLaboklab(94.99% -0.0537 0.1373)
OKLCHoklch(94.99% 0.147 111.4)
XYZxyz(73.8249, 87.4688, 32.0591)
Luminance0.8747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87C #827CF8
analogous
#F8C07C #F2F87C #B4F87C
triadic
#F2F87C #7CF2F8 #F87CF2
tetradic
#F2F87C #7CF8C0 #827CF8 #F87CB4
square
#F2F87C #7CF8C0 #827CF8 #F87CB4
split-complementary
#F2F87C #7CB4F8 #C07CF8
monochromatic
#E2ED0D #ECF542 #F2F87C #F8FBB6 #FCFDE2

Accessibility & contrast

On white

1.14
#F2F87C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.49
#F2F87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F87C
18.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F87C#FFFFFF#000000##000000
##F2F87C1.001.1418.4918.49
#FFFFFF1.141.0021.0021.00
#00000018.4921.001.001.00
##00000018.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF70
Deuteranopia (green-blind)
#FFF283
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f87c;
/* rgb */ color: rgb(242, 248, 124);
/* oklch */ color: oklch(95.0% 0.147 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa5',
    500: '#f2f87c',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87c;
$custom-light: #f8faa5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87c",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 62.903,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.9499,
    "c": 0.14744,
    "h": 111.4
  },
  "luminance": 0.87467
}

Semantic roles & 50–950 ramp

primary
#F2F87C
secondary
#4B44D4
accent
#00E60B
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F87C

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

Preview Lab → · Contrast checker → · Palette generator →

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