#F0DB8A#F0DB8A

#F0DB8A is a very light, moderate yellow. Relative luminance 0.710; OKLCH L 89.1% C 0.104 H 95.3°. Best body text is #000000 at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#F0DB8A
RGBrgb(240, 219, 138)
HSLhsl(48, 77%, 74%)
HSVhsv(48, 43%, 94%)
CMYKcmyk(0%, 8.8%, 42.5%, 5.9%)
CIE-LABlab(87.50, -3.67, 42.39)
CIE-LCHlch(87.50, 42.54, 94.95°)
OKLaboklab(89.1% -0.0096 0.1032)
OKLCHoklch(89.1% 0.104 95.3)
XYZxyz(65.8558, 71.0256, 34.2801)
Luminance0.7102 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DB8A #8A9FF0
analogous
#F0A88A #F0DB8A #D2F08A
triadic
#F0DB8A #8AF0DB #DB8AF0
tetradic
#F0DB8A #8AF0A8 #8A9FF0 #F08AD2
square
#F0DB8A #8AF0A8 #8A9FF0 #F08AD2
split-complementary
#F0DB8A #8AD2F0 #A88AF0
monochromatic
#E2BA1E #E9CA54 #F0DB8A #F7ECC0 #FCF7E4

Accessibility & contrast

On white

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

On black

15.20
#F0DB8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DB8A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DB8A#FFFFFF#000000##000000
##F0DB8A1.001.3815.2015.20
#FFFFFF1.381.0021.0021.00
#00000015.2021.001.001.00
##00000015.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD784
Deuteranopia (green-blind)
#F0DE8D
Tritanopia (blue-blind)
#FED0C7
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0db8a;
/* rgb */ color: rgb(240, 219, 138);
/* oklch */ color: oklch(89.1% 0.104 95.3);
Tailwind
colors: {
  custom: {
    50: '#f6e6ad',
    500: '#f0db8a',
    950: '#000000',
  },
}
SCSS
$custom: #f0db8a;
$custom-light: #f6e6ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f0db8a",
  "rgb": {
    "r": 240,
    "g": 219,
    "b": 138
  },
  "hsl": {
    "h": 47.647,
    "s": 77.273,
    "l": 74.118
  },
  "oklch": {
    "l": 0.89099,
    "c": 0.10359,
    "h": 95.3
  },
  "luminance": 0.71023
}

Semantic roles & 50–950 ramp

primary
#F0DB8A
secondary
#536BCC
accent
#36DA0C
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171510
muted
#858481

Preview Lab

Preview with #F0DB8A

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

Preview Lab → · Contrast checker → · Palette generator →

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