#F0DC7A#F0DC7A

#F0DC7A is a very light, vivid yellow. Relative luminance 0.711; OKLCH L 89.1% C 0.121 H 98.1°. Best body text is #000000 at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#F0DC7A
RGBrgb(240, 220, 122)
HSLhsl(50, 80%, 71%)
HSVhsv(50, 49%, 94%)
CMYKcmyk(0%, 8.3%, 49.2%, 5.9%)
CIE-LABlab(87.54, -5.69, 50.27)
CIE-LCHlch(87.54, 50.59, 96.46°)
OKLaboklab(89.07% -0.017 0.1198)
OKLCHoklch(89.07% 0.121 98.1)
XYZxyz(65.0432, 71.1192, 28.7098)
Luminance0.7112 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC7A #7A8EF0
analogous
#F0A17A #F0DC7A #C9F07A
triadic
#F0DC7A #7AF0DC #DC7AF0
tetradic
#F0DC7A #7AF0A1 #7A8EF0 #F07AC9
square
#F0DC7A #7AF0A1 #7A8EF0 #F07AC9
split-complementary
#F0DC7A #7AC9F0 #A17AF0
monochromatic
#D7B718 #EACE43 #F0DC7A #F6EAB1 #FCF8E4

Accessibility & contrast

On white

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

On black

15.22
#F0DC7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC7A
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC7A#FFFFFF#000000##000000
##F0DC7A1.001.3815.2215.22
#FFFFFF1.381.0021.0021.00
#00000015.2221.001.001.00
##00000015.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0dc7a;
/* rgb */ color: rgb(240, 220, 122);
/* oklch */ color: oklch(89.1% 0.121 98.1);
Tailwind
colors: {
  custom: {
    50: '#f7e6a2',
    500: '#f0dc7a',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc7a;
$custom-light: #f7e6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc7a",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 122
  },
  "hsl": {
    "h": 49.831,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89067,
    "c": 0.12095,
    "h": 98.1
  },
  "luminance": 0.71117
}

Semantic roles & 50–950 ramp

primary
#F0DC7A
secondary
#445BCA
accent
#2DDC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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