#F0DC8A#F0DC8A

#F0DC8A is a very light, moderate yellow. Relative luminance 0.715; OKLCH L 89.3% C 0.104 H 96.1°. Best body text is #000000 at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#F0DC8A
RGBrgb(240, 220, 138)
HSLhsl(48, 77%, 74%)
HSVhsv(48, 43%, 94%)
CMYKcmyk(0%, 8.3%, 42.5%, 5.9%)
CIE-LABlab(87.75, -4.18, 42.71)
CIE-LCHlch(87.75, 42.91, 95.59°)
OKLaboklab(89.3% -0.0111 0.1039)
OKLCHoklch(89.3% 0.104 96.1)
XYZxyz(66.1174, 71.5489, 34.3674)
Luminance0.7155 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC8A #8A9EF0
analogous
#F0A98A #F0DC8A #D1F08A
triadic
#F0DC8A #8AF0DC #DC8AF0
tetradic
#F0DC8A #8AF0A9 #8A9EF0 #F08AD1
square
#F0DC8A #8AF0A9 #8A9EF0 #F08AD1
split-complementary
#F0DC8A #8AD1F0 #A98AF0
monochromatic
#E2BC1E #E9CC54 #F0DC8A #F7ECC0 #FCF7E4

Accessibility & contrast

On white

1.37
#F0DC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.31
#F0DC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC8A
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC8A#FFFFFF#000000##000000
##F0DC8A1.001.3715.3115.31
#FFFFFF1.371.0021.0021.00
#00000015.3121.001.001.00
##00000015.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD884
Deuteranopia (green-blind)
#F1DF8D
Tritanopia (blue-blind)
#FED1C8
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f0dc8a;
/* rgb */ color: rgb(240, 220, 138);
/* oklch */ color: oklch(89.3% 0.104 96.1);
Tailwind
colors: {
  custom: {
    50: '#f6e6ad',
    500: '#f0dc8a',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc8a;
$custom-light: #f6e6ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc8a",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 138
  },
  "hsl": {
    "h": 48.235,
    "s": 77.273,
    "l": 74.118
  },
  "oklch": {
    "l": 0.89299,
    "c": 0.10447,
    "h": 96.1
  },
  "luminance": 0.71547
}

Semantic roles & 50–950 ramp

primary
#F0DC8A
secondary
#536ACC
accent
#34DA0C
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #F0DC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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