#F0DFAC#F0DFAC

#F0DFAC is a very light, moderate yellow. Relative luminance 0.743; OKLCH L 90.5% C 0.069 H 91.8°. Best body text is #000000 at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#F0DFAC
RGBrgb(240, 223, 172)
HSLhsl(45, 69%, 81%)
HSVhsv(45, 28%, 94%)
CMYKcmyk(0%, 7.1%, 28.3%, 5.9%)
CIE-LABlab(89.06, -1.79, 27.15)
CIE-LCHlch(89.06, 27.21, 93.76°)
OKLaboklab(90.51% -0.0022 0.0686)
OKLCHoklch(90.51% 0.069 91.8)
XYZxyz(69.7698, 74.2810, 49.6841)
Luminance0.7428 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DFAC #ACBDF0
analogous
#F0BDAC #F0DFAC #DFF0AC
triadic
#F0DFAC #ACF0DF #DFACF0
tetradic
#F0DFAC #ACF0BD #ACBDF0 #F0ACDF
square
#F0DFAC #ACF0BD #ACBDF0 #F0ACDF
split-complementary
#F0DFAC #ACDFF0 #BDACF0
monochromatic
#DDB744 #E7CB78 #F0DFAC #F9F3E0 #FAF5E5

Accessibility & contrast

On white

1.32
#F0DFAC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.86
#F0DFAC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DFAC
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DFAC#FFFFFF#000000##000000
##F0DFAC1.001.3215.8615.86
#FFFFFF1.321.0021.0021.00
#00000015.8621.001.001.00
##00000015.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EADDA9
Deuteranopia (green-blind)
#EFE2AE
Tritanopia (blue-blind)
#FBD7D1
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f0dfac;
/* rgb */ color: rgb(240, 223, 172);
/* oklch */ color: oklch(90.5% 0.069 91.8);
Tailwind
colors: {
  custom: {
    50: '#f5e8c5',
    500: '#f0dfac',
    950: '#000000',
  },
}
SCSS
$custom: #f0dfac;
$custom-light: #f5e8c5;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dfac",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 172
  },
  "hsl": {
    "h": 45,
    "s": 69.388,
    "l": 80.784
  },
  "oklch": {
    "l": 0.90507,
    "c": 0.06862,
    "h": 91.8
  },
  "luminance": 0.74279
}

Semantic roles & 50–950 ramp

primary
#F0DFAC
secondary
#7289CE
accent
#43D114
background
#FFFEFD
surface
#FEFCF9
border
#D6D5D2
text
#171613
muted
#858482

Preview Lab

Preview with #F0DFAC

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

Preview Lab → · Contrast checker → · Palette generator →

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