#F0DF78#F0DF78

#F0DF78 is a very light, vivid yellow. Relative luminance 0.727; OKLCH L 89.6% C 0.126 H 100.1°. Best body text is #000000 at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#F0DF78
RGBrgb(240, 223, 120)
HSLhsl(52, 80%, 71%)
HSVhsv(52, 50%, 94%)
CMYKcmyk(0%, 7.1%, 50%, 5.9%)
CIE-LABlab(88.28, -7.38, 52.12)
CIE-LCHlch(88.28, 52.64, 98.06°)
OKLaboklab(89.65% -0.022 0.1237)
OKLCHoklch(89.65% 0.126 100.1)
XYZxyz(65.7150, 72.6590, 28.3287)
Luminance0.7266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF78 #7889F0
analogous
#F0A378 #F0DF78 #C5F078
triadic
#F0DF78 #78F0DF #DF78F0
tetradic
#F0DF78 #78F0A3 #7889F0 #F078C5
square
#F0DF78 #78F0A3 #7889F0 #F078C5
split-complementary
#F0DF78 #78C5F0 #A378F0
monochromatic
#D6BB18 #EAD241 #F0DF78 #F6ECAF #FCF8E3

Accessibility & contrast

On white

1.35
#F0DF78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.53
#F0DF78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF78
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF78#FFFFFF#000000##000000
##F0DF781.001.3515.5315.53
#FFFFFF1.351.0021.0021.00
#00000015.5321.001.001.00
##00000015.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA6F
Deuteranopia (green-blind)
#F5E17D
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0df78;
/* rgb */ color: rgb(240, 223, 120);
/* oklch */ color: oklch(89.6% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#f7e8a1',
    500: '#f0df78',
    950: '#000000',
  },
}
SCSS
$custom: #f0df78;
$custom-light: #f7e8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df78",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 120
  },
  "hsl": {
    "h": 51.5,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.89647,
    "c": 0.12561,
    "h": 100.1
  },
  "luminance": 0.72657
}

Semantic roles & 50–950 ramp

primary
#F0DF78
secondary
#4256CA
accent
#27DC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DF78

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

Preview Lab → · Contrast checker → · Palette generator →

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