#F0F87E#F0F87E

#F0F87E is a very light, vivid yellow. Relative luminance 0.872; OKLCH L 94.9% C 0.146 H 112.2°. Best body text is #000000 at 18.43:1 contrast (WCAG AA passes).

Color values

HEX#F0F87E
RGBrgb(240, 248, 126)
HSLhsl(64, 90%, 73%)
HSVhsv(64, 49%, 97%)
CMYKcmyk(3.2%, 0%, 49.2%, 2.7%)
CIE-LABlab(94.81, -19.17, 57.12)
CIE-LCHlch(94.81, 60.25, 108.55°)
OKLaboklab(94.86% -0.0552 0.1351)
OKLCHoklch(94.86% 0.146 112.2)
XYZxyz(73.2698, 87.1678, 32.6999)
Luminance0.8717 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F87E #867EF8
analogous
#F8C37E #F0F87E #B3F87E
triadic
#F0F87E #7EF0F8 #F87EF0
tetradic
#F0F87E #7EF8C3 #867EF8 #F87EB3
square
#F0F87E #7EF8C3 #867EF8 #F87EB3
split-complementary
#F0F87E #7EB3F8 #C37EF8
monochromatic
#E0EF0D #E9F544 #F0F87E #F7FBB8 #FCFDE2

Accessibility & contrast

On white

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

On black

18.43
#F0F87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F87E
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F87E#FFFFFF#000000##000000
##F0F87E1.001.1418.4318.43
#FFFFFF1.141.0021.0021.00
#00000018.4321.001.001.00
##00000018.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE73
Deuteranopia (green-blind)
#FFF284
Tritanopia (blue-blind)
#FDECDC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f0f87e;
/* rgb */ color: rgb(240, 248, 126);
/* oklch */ color: oklch(94.9% 0.146 112.2);
Tailwind
colors: {
  custom: {
    50: '#f7faa6',
    500: '#f0f87e',
    950: '#000000',
  },
}
SCSS
$custom: #f0f87e;
$custom-light: #f7faa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f87e",
  "rgb": {
    "r": 240,
    "g": 248,
    "b": 126
  },
  "hsl": {
    "h": 63.934,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94859,
    "c": 0.14592,
    "h": 112.2
  },
  "luminance": 0.87166
}

Semantic roles & 50–950 ramp

primary
#F0F87E
secondary
#4F46D5
accent
#00E60F
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#171710
muted
#858580

Preview Lab

Preview with #F0F87E

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

Preview Lab → · Contrast checker → · Palette generator →

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