#F2F87D#F2F87D

#F2F87D 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#F2F87D
RGBrgb(242, 248, 125)
HSLhsl(63, 90%, 73%)
HSVhsv(63, 50%, 97%)
CMYKcmyk(2.4%, 0%, 49.6%, 2.7%)
CIE-LABlab(94.95, -18.48, 57.77)
CIE-LCHlch(94.95, 60.66, 107.74°)
OKLaboklab(95% -0.0534 0.1364)
OKLCHoklch(95% 0.146 111.4)
XYZxyz(73.8885, 87.4942, 32.3938)
Luminance0.8749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87D #837DF8
analogous
#F8C07D #F2F87D #B4F87D
triadic
#F2F87D #7DF2F8 #F87DF2
tetradic
#F2F87D #7DF8C0 #837DF8 #F87DB4
square
#F2F87D #7DF8C0 #837DF8 #F87DB4
split-complementary
#F2F87D #7DB4F8 #C07DF8
monochromatic
#E3EE0D #ECF543 #F2F87D #F8FBB7 #FCFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F87D#FFFFFF#000000##000000
##F2F87D1.001.1418.5018.50
#FFFFFF1.141.0021.0021.00
#00000018.5021.001.001.00
##00000018.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f87d;
/* rgb */ color: rgb(242, 248, 125);
/* oklch */ color: oklch(95.0% 0.146 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa5',
    500: '#f2f87d',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87d;
$custom-light: #f8faa5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87d",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 125
  },
  "hsl": {
    "h": 62.927,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95002,
    "c": 0.14649,
    "h": 111.4
  },
  "luminance": 0.87493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F87D

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

Preview Lab → · Contrast checker → · Palette generator →

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