#F0DA97#F0DA97

#F0DA97 is a very light, moderate yellow. Relative luminance 0.709; OKLCH L 89.1% C 0.089 H 92.0°. Best body text is #000000 at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#F0DA97
RGBrgb(240, 218, 151)
HSLhsl(45, 75%, 77%)
HSVhsv(45, 37%, 94%)
CMYKcmyk(0%, 9.2%, 37.1%, 5.9%)
CIE-LABlab(87.44, -1.77, 35.76)
CIE-LCHlch(87.44, 35.81, 92.83°)
OKLaboklab(89.12% -0.0031 0.0885)
OKLCHoklch(89.12% 0.089 92)
XYZxyz(66.5938, 70.9047, 39.4502)
Luminance0.7090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DA97 #97ADF0
analogous
#F0AE97 #F0DA97 #D9F097
triadic
#F0DA97 #97F0DA #DA97F0
tetradic
#F0DA97 #97F0AE #97ADF0 #F097D9
square
#F0DA97 #97F0AE #97ADF0 #F097D9
split-complementary
#F0DA97 #97D9F0 #AE97F0
monochromatic
#E1B42C #E8C762 #F0DA97 #F8EDCC #FBF5E4

Accessibility & contrast

On white

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

On black

15.18
#F0DA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DA97
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DA97#FFFFFF#000000##000000
##F0DA971.001.3815.1815.18
#FFFFFF1.381.0021.0021.00
#00000015.1821.001.001.00
##00000015.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8D792
Deuteranopia (green-blind)
#EEDE99
Tritanopia (blue-blind)
#FDD0C9
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0da97;
/* rgb */ color: rgb(240, 218, 151);
/* oklch */ color: oklch(89.1% 0.089 92.0);
Tailwind
colors: {
  custom: {
    50: '#f6e5b6',
    500: '#f0da97',
    950: '#000000',
  },
}
SCSS
$custom: #f0da97;
$custom-light: #f6e5b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0da97",
  "rgb": {
    "r": 240,
    "g": 218,
    "b": 151
  },
  "hsl": {
    "h": 45.169,
    "s": 74.79,
    "l": 76.667
  },
  "oklch": {
    "l": 0.89116,
    "c": 0.08852,
    "h": 92
  },
  "luminance": 0.70902
}

Semantic roles & 50–950 ramp

primary
#F0DA97
secondary
#5E7ACD
accent
#40D70F
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #F0DA97

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

Preview Lab → · Contrast checker → · Palette generator →

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