#F0DF8A#F0DF8A

#F0DF8A is a very light, moderate yellow. Relative luminance 0.731; OKLCH L 89.9% C 0.107 H 98.3°. Best body text is #000000 at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#F0DF8A
RGBrgb(240, 223, 138)
HSLhsl(50, 77%, 74%)
HSVhsv(50, 43%, 94%)
CMYKcmyk(0%, 7.1%, 42.5%, 5.9%)
CIE-LABlab(88.51, -5.70, 43.67)
CIE-LCHlch(88.51, 44.04, 97.43°)
OKLaboklab(89.9% -0.0155 0.1061)
OKLCHoklch(89.9% 0.107 98.3)
XYZxyz(66.9119, 73.1378, 34.6322)
Luminance0.7314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF8A #8A9BF0
analogous
#F0AC8A #F0DF8A #CEF08A
triadic
#F0DF8A #8AF0DF #DF8AF0
tetradic
#F0DF8A #8AF0AC #8A9BF0 #F08ACE
square
#F0DF8A #8AF0AC #8A9BF0 #F08ACE
split-complementary
#F0DF8A #8ACEF0 #AC8AF0
monochromatic
#E2C11E #E9D054 #F0DF8A #F7EEC0 #FCF8E4

Accessibility & contrast

On white

1.34
#F0DF8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.63
#F0DF8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF8A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF8A#FFFFFF#000000##000000
##F0DF8A1.001.3415.6315.63
#FFFFFF1.341.0021.0021.00
#00000015.6321.001.001.00
##00000015.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#EEDB83
Deuteranopia (green-blind)
#F3E18D
Tritanopia (blue-blind)
#FED4CA
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f0df8a;
/* rgb */ color: rgb(240, 223, 138);
/* oklch */ color: oklch(89.9% 0.107 98.3);
Tailwind
colors: {
  custom: {
    50: '#f6e8ad',
    500: '#f0df8a',
    950: '#000000',
  },
}
SCSS
$custom: #f0df8a;
$custom-light: #f6e8ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df8a",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 138
  },
  "hsl": {
    "h": 50,
    "s": 77.273,
    "l": 74.118
  },
  "oklch": {
    "l": 0.89902,
    "c": 0.10719,
    "h": 98.3
  },
  "luminance": 0.73136
}

Semantic roles & 50–950 ramp

primary
#F0DF8A
secondary
#5367CC
accent
#2EDA0C
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F0DF8A

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

Preview Lab → · Contrast checker → · Palette generator →

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