#F0DF79#F0DF79

#F0DF79 is a very light, vivid yellow. Relative luminance 0.727; OKLCH L 89.7% C 0.125 H 100.0°. Best body text is #000000 at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#F0DF79
RGBrgb(240, 223, 121)
HSLhsl(51, 80%, 71%)
HSVhsv(51, 50%, 94%)
CMYKcmyk(0%, 7.1%, 49.6%, 5.9%)
CIE-LABlab(88.30, -7.29, 51.66)
CIE-LCHlch(88.30, 52.17, 98.03°)
OKLaboklab(89.66% -0.0217 0.1227)
OKLCHoklch(89.66% 0.125 100)
XYZxyz(65.7760, 72.6834, 28.6500)
Luminance0.7268 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF79 #798AF0
analogous
#F0A379 #F0DF79 #C5F079
triadic
#F0DF79 #79F0DF #DF79F0
tetradic
#F0DF79 #79F0A3 #798AF0 #F079C5
square
#F0DF79 #79F0A3 #798AF0 #F079C5
split-complementary
#F0DF79 #79C5F0 #A379F0
monochromatic
#D7BB18 #EAD242 #F0DF79 #F6ECB0 #FCF8E3

Accessibility & contrast

On white

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

On black

15.54
#F0DF79 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF79
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF79#FFFFFF#000000##000000
##F0DF791.001.3515.5415.54
#FFFFFF1.351.0021.0021.00
#00000015.5421.001.001.00
##00000015.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0df79;
/* rgb */ color: rgb(240, 223, 121);
/* oklch */ color: oklch(89.7% 0.125 100.0);
Tailwind
colors: {
  custom: {
    50: '#f7e8a2',
    500: '#f0df79',
    950: '#000000',
  },
}
SCSS
$custom: #f0df79;
$custom-light: #f7e8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df79",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 121
  },
  "hsl": {
    "h": 51.429,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.8966,
    "c": 0.12463,
    "h": 100
  },
  "luminance": 0.72681
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F0DF79

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

Preview Lab → · Contrast checker → · Palette generator →

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