#F0DC81#F0DC81

#F0DC81 is a very light, moderate yellow. Relative luminance 0.713; OKLCH L 89.2% C 0.114 H 97.3°. Best body text is #000000 at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#F0DC81
RGBrgb(240, 220, 129)
HSLhsl(49, 79%, 72%)
HSVhsv(49, 46%, 94%)
CMYKcmyk(0%, 8.3%, 46.3%, 5.9%)
CIE-LABlab(87.63, -5.06, 46.99)
CIE-LCHlch(87.63, 47.26, 96.14°)
OKLaboklab(89.16% -0.0144 0.113)
OKLCHoklch(89.16% 0.114 97.3)
XYZxyz(65.4927, 71.2990, 31.0769)
Luminance0.7130 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC81 #8195F0
analogous
#F0A481 #F0DC81 #CDF081
triadic
#F0DC81 #81F0DC #DC81F0
tetradic
#F0DC81 #81F0A4 #8195F0 #F081CD
square
#F0DC81 #81F0A4 #8195F0 #F081CD
split-complementary
#F0DC81 #81CDF0 #A481F0
monochromatic
#DCB91A #E9CD4A #F0DC81 #F7EBB8 #FCF7E4

Accessibility & contrast

On white

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

On black

15.26
#F0DC81 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC81
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC81#FFFFFF#000000##000000
##F0DC811.001.3815.2615.26
#FFFFFF1.381.0021.0021.00
#00000015.2621.001.001.00
##00000015.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD87A
Deuteranopia (green-blind)
#F2DF85
Tritanopia (blue-blind)
#FFD0C6
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f0dc81;
/* rgb */ color: rgb(240, 220, 129);
/* oklch */ color: oklch(89.2% 0.114 97.3);
Tailwind
colors: {
  custom: {
    50: '#f7e6a7',
    500: '#f0dc81',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc81;
$custom-light: #f7e6a7;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc81",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 129
  },
  "hsl": {
    "h": 49.189,
    "s": 78.723,
    "l": 72.353
  },
  "oklch": {
    "l": 0.89164,
    "c": 0.1139,
    "h": 97.3
  },
  "luminance": 0.71297
}

Semantic roles & 50–950 ramp

primary
#F0DC81
secondary
#4A62CB
accent
#30DB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC81

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

Preview Lab → · Contrast checker → · Palette generator →

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