#F0EC78#F0EC78

#F0EC78 is a very light, vivid yellow. Relative luminance 0.799; OKLCH L 92.3% C 0.138 H 107.0°. Best body text is #000000 at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#F0EC78
RGBrgb(240, 236, 120)
HSLhsl(58, 80%, 71%)
HSVhsv(58, 50%, 94%)
CMYKcmyk(0%, 1.7%, 50%, 5.9%)
CIE-LABlab(91.63, -13.84, 56.11)
CIE-LCHlch(91.63, 57.79, 103.86°)
OKLaboklab(92.3% -0.0406 0.1324)
OKLCHoklch(92.3% 0.138 107)
XYZxyz(69.3225, 79.8741, 29.5312)
Luminance0.7987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0EC78 #787CF0
analogous
#F0B078 #F0EC78 #B8F078
triadic
#F0EC78 #78F0EC #EC78F0
tetradic
#F0EC78 #78F0B0 #787CF0 #F078B8
square
#F0EC78 #78F0B0 #787CF0 #F078B8
split-complementary
#F0EC78 #78B8F0 #B078F0
monochromatic
#D6D018 #EAE441 #F0EC78 #F6F4AF #FCFBE3

Accessibility & contrast

On white

1.24
#F0EC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.97
#F0EC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0EC78
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0EC78#FFFFFF#000000##000000
##F0EC781.001.2416.9716.97
#FFFFFF1.241.0021.0021.00
#00000016.9721.001.001.00
##00000016.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE46D
Deuteranopia (green-blind)
#FFE97E
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f0ec78;
/* rgb */ color: rgb(240, 236, 120);
/* oklch */ color: oklch(92.3% 0.138 107.0);
Tailwind
colors: {
  custom: {
    50: '#f7f2a2',
    500: '#f0ec78',
    950: '#000000',
  },
}
SCSS
$custom: #f0ec78;
$custom-light: #f7f2a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0ec78",
  "rgb": {
    "r": 240,
    "g": 236,
    "b": 120
  },
  "hsl": {
    "h": 58,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.92303,
    "c": 0.13845,
    "h": 107
  },
  "luminance": 0.79872
}

Semantic roles & 50–950 ramp

primary
#F0EC78
secondary
#4247CA
accent
#10DC09
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17160F
muted
#858580

Preview Lab

Preview with #F0EC78

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

Preview Lab → · Contrast checker → · Palette generator →

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