#F0DC78#F0DC78

#F0DC78 is a very light, vivid yellow. Relative luminance 0.711; OKLCH L 89.0% C 0.123 H 98.3°. Best body text is #000000 at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#F0DC78
RGBrgb(240, 220, 120)
HSLhsl(50, 80%, 71%)
HSVhsv(50, 50%, 94%)
CMYKcmyk(0%, 8.3%, 50%, 5.9%)
CIE-LABlab(87.52, -5.87, 51.20)
CIE-LCHlch(87.52, 51.54, 96.54°)
OKLaboklab(89.04% -0.0177 0.1216)
OKLCHoklch(89.04% 0.123 98.3)
XYZxyz(64.9206, 71.0702, 28.0639)
Luminance0.7107 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC78 #788CF0
analogous
#F0A078 #F0DC78 #C8F078
triadic
#F0DC78 #78F0DC #DC78F0
tetradic
#F0DC78 #78F0A0 #788CF0 #F078C8
square
#F0DC78 #78F0A0 #788CF0 #F078C8
split-complementary
#F0DC78 #78C8F0 #A078F0
monochromatic
#D6B618 #EACE41 #F0DC78 #F6EAAF #FCF8E3

Accessibility & contrast

On white

1.38
#F0DC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.21
#F0DC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC78
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC78#FFFFFF#000000##000000
##F0DC781.001.3815.2115.21
#FFFFFF1.381.0021.0021.00
#00000015.2121.001.001.00
##00000015.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD76F
Deuteranopia (green-blind)
#F3DF7C
Tritanopia (blue-blind)
#FFCFC5
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc78;
/* rgb */ color: rgb(240, 220, 120);
/* oklch */ color: oklch(89.0% 0.123 98.3);
Tailwind
colors: {
  custom: {
    50: '#f7e6a1',
    500: '#f0dc78',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc78;
$custom-light: #f7e6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc78",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 120
  },
  "hsl": {
    "h": 50,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.89041,
    "c": 0.12292,
    "h": 98.3
  },
  "luminance": 0.71068
}

Semantic roles & 50–950 ramp

primary
#F0DC78
secondary
#4259CA
accent
#2CDC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC78

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

Preview Lab → · Contrast checker → · Palette generator →

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