#F0E87F#F0E87F

#F0E87F is a very light, vivid yellow. Relative luminance 0.778; OKLCH L 91.6% C 0.127 H 104.8°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#F0E87F
RGBrgb(240, 232, 127)
HSLhsl(56, 79%, 72%)
HSVhsv(56, 47%, 94%)
CMYKcmyk(0%, 3.3%, 47.1%, 5.9%)
CIE-LABlab(90.68, -11.26, 51.69)
CIE-LCHlch(90.68, 52.90, 102.28°)
OKLaboklab(91.57% -0.0325 0.1233)
OKLCHoklch(91.57% 0.127 104.8)
XYZxyz(68.6242, 77.7728, 31.4713)
Luminance0.7777 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E87F #7F87F0
analogous
#F0B07F #F0E87F #C0F07F
triadic
#F0E87F #7FF0E8 #E87FF0
tetradic
#F0E87F #7FF0B0 #7F87F0 #F07FC0
square
#F0E87F #7FF0B0 #7F87F0 #F07FC0
split-complementary
#F0E87F #7FC0F0 #B07FF0
monochromatic
#DBCD1A #EADE48 #F0E87F #F6F2B6 #FCFAE4

Accessibility & contrast

On white

1.27
#F0E87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.55
#F0E87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E87F
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E87F#FFFFFF#000000##000000
##F0E87F1.001.2716.5516.55
#FFFFFF1.271.0021.0021.00
#00000016.5521.001.001.00
##00000016.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E176
Deuteranopia (green-blind)
#FBE784
Tritanopia (blue-blind)
#FEDCCF
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f0e87f;
/* rgb */ color: rgb(240, 232, 127);
/* oklch */ color: oklch(91.6% 0.127 104.8);
Tailwind
colors: {
  custom: {
    50: '#f7efa6',
    500: '#f0e87f',
    950: '#000000',
  },
}
SCSS
$custom: #f0e87f;
$custom-light: #f7efa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e87f",
  "rgb": {
    "r": 240,
    "g": 232,
    "b": 127
  },
  "hsl": {
    "h": 55.752,
    "s": 79.021,
    "l": 71.961
  },
  "oklch": {
    "l": 0.91571,
    "c": 0.12748,
    "h": 104.8
  },
  "luminance": 0.77771
}

Semantic roles & 50–950 ramp

primary
#F0E87F
secondary
#4952CB
accent
#19DB0A
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17160F
muted
#858580

Preview Lab

Preview with #F0E87F

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

Preview Lab → · Contrast checker → · Palette generator →

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