#F2F87A#F2F87A

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

Color values

HEX#F2F87A
RGBrgb(242, 248, 122)
HSLhsl(63, 90%, 73%)
HSVhsv(63, 51%, 97%)
CMYKcmyk(2.4%, 0%, 50.8%, 2.7%)
CIE-LABlab(94.92, -18.73, 59.10)
CIE-LCHlch(94.92, 62.00, 107.59°)
OKLaboklab(94.97% -0.0544 0.139)
OKLCHoklch(94.97% 0.149 111.4)
XYZxyz(73.6998, 87.4187, 31.3997)
Luminance0.8742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87A #807AF8
analogous
#F8BF7A #F2F87A #B3F87A
triadic
#F2F87A #7AF2F8 #F87AF2
tetradic
#F2F87A #7AF8BF #807AF8 #F87AB3
square
#F2F87A #7AF8BF #807AF8 #F87AB3
split-complementary
#F2F87A #7AB3F8 #BF7AF8
monochromatic
#E1EB0C #ECF540 #F2F87A #F8FBB4 #FCFDE2

Accessibility & contrast

On white

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

On black

18.48
#F2F87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F87A
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F87A#FFFFFF#000000##000000
##F2F87A1.001.1418.4818.48
#FFFFFF1.141.0021.0021.00
#00000018.4821.001.001.00
##00000018.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f87a;
/* rgb */ color: rgb(242, 248, 122);
/* oklch */ color: oklch(95.0% 0.149 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa4',
    500: '#f2f87a',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87a;
$custom-light: #f8faa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87a",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 122
  },
  "hsl": {
    "h": 62.857,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.94966,
    "c": 0.1493,
    "h": 111.4
  },
  "luminance": 0.87417
}

Semantic roles & 50–950 ramp

primary
#F2F87A
secondary
#4942D4
accent
#00E60B
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F87A

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

Preview Lab → · Contrast checker → · Palette generator →

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