#F2F87B#F2F87B

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

Color values

HEX#F2F87B
RGBrgb(242, 248, 123)
HSLhsl(63, 90%, 73%)
HSVhsv(63, 50%, 97%)
CMYKcmyk(2.4%, 0%, 50.4%, 2.7%)
CIE-LABlab(94.93, -18.65, 58.66)
CIE-LCHlch(94.93, 61.55, 107.64°)
OKLaboklab(94.98% -0.0541 0.1382)
OKLCHoklch(94.98% 0.148 111.4)
XYZxyz(73.7620, 87.4436, 31.7277)
Luminance0.8744 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F87B #817BF8
analogous
#F8BF7B #F2F87B #B3F87B
triadic
#F2F87B #7BF2F8 #F87BF2
tetradic
#F2F87B #7BF8BF #817BF8 #F87BB3
square
#F2F87B #7BF8BF #817BF8 #F87BB3
split-complementary
#F2F87B #7BB3F8 #BF7BF8
monochromatic
#E1EC0D #ECF541 #F2F87B #F8FBB5 #FCFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F87B#FFFFFF#000000##000000
##F2F87B1.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)
#FFEF6F
Deuteranopia (green-blind)
#FFF282
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f87b;
/* rgb */ color: rgb(242, 248, 123);
/* oklch */ color: oklch(95.0% 0.148 111.4);
Tailwind
colors: {
  custom: {
    50: '#f8faa4',
    500: '#f2f87b',
    950: '#000000',
  },
}
SCSS
$custom: #f2f87b;
$custom-light: #f8faa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f87b",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 123
  },
  "hsl": {
    "h": 62.88,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.94978,
    "c": 0.14837,
    "h": 111.4
  },
  "luminance": 0.87442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F87B

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

Preview Lab → · Contrast checker → · Palette generator →

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