#F2F87F#F2F87F

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

Color values

HEX#F2F87F
RGBrgb(242, 248, 127)
HSLhsl(63, 90%, 74%)
HSVhsv(63, 49%, 97%)
CMYKcmyk(2.4%, 0%, 48.8%, 2.7%)
CIE-LABlab(94.97, -18.30, 56.88)
CIE-LCHlch(94.97, 59.76, 107.84°)
OKLaboklab(95.03% -0.0527 0.1346)
OKLCHoklch(95.03% 0.145 111.4)
XYZxyz(74.0176, 87.5458, 33.0735)
Luminance0.8754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87F #857FF8
analogous
#F8C17F #F2F87F #B5F87F
triadic
#F2F87F #7FF2F8 #F87FF2
tetradic
#F2F87F #7FF8C1 #857FF8 #F87FB5
square
#F2F87F #7FF8C1 #857FF8 #F87FB5
split-complementary
#F2F87F #7FB5F8 #C17FF8
monochromatic
#E4F00D #ECF545 #F2F87F #F8FBB9 #FCFDE2

Accessibility & contrast

On white

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

On black

18.51
#F2F87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F87F
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F87F#FFFFFF#000000##000000
##F2F87F1.001.1318.5118.51
#FFFFFF1.131.0021.0021.00
#00000018.5121.001.001.00
##00000018.5121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f87f;
/* rgb */ color: rgb(242, 248, 127);
/* oklch */ color: oklch(95.0% 0.145 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa7',
    500: '#f2f87f',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87f;
$custom-light: #f8faa7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87f",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 127
  },
  "hsl": {
    "h": 62.975,
    "s": 89.63,
    "l": 73.529
  },
  "oklch": {
    "l": 0.95027,
    "c": 0.1446,
    "h": 111.4
  },
  "luminance": 0.87544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F87F

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

Preview Lab → · Contrast checker → · Palette generator →

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