#F0DF97#F0DF97

#F0DF97 is a very light, moderate yellow. Relative luminance 0.735; OKLCH L 90.1% C 0.093 H 96.5°. Best body text is #000000 at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#F0DF97
RGBrgb(240, 223, 151)
HSLhsl(49, 75%, 77%)
HSVhsv(49, 37%, 94%)
CMYKcmyk(0%, 7.1%, 37.1%, 5.9%)
CIE-LABlab(88.70, -4.31, 37.42)
CIE-LCHlch(88.70, 37.66, 96.58°)
OKLaboklab(90.11% -0.0105 0.0923)
OKLCHoklch(90.11% 0.093 96.5)
XYZxyz(67.9100, 73.5370, 39.8890)
Luminance0.7353 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF97 #97A8F0
analogous
#F0B397 #F0DF97 #D5F097
triadic
#F0DF97 #97F0DF #DF97F0
tetradic
#F0DF97 #97F0B3 #97A8F0 #F097D5
square
#F0DF97 #97F0B3 #97A8F0 #F097D5
split-complementary
#F0DF97 #97D5F0 #B397F0
monochromatic
#E1BE2C #E8CF62 #F0DF97 #F8EFCC #FBF7E4

Accessibility & contrast

On white

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

On black

15.71
#F0DF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF97
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF97#FFFFFF#000000##000000
##F0DF971.001.3415.7115.71
#FFFFFF1.341.0021.0021.00
#00000015.7121.001.001.00
##00000015.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDDB92
Deuteranopia (green-blind)
#F2E19A
Tritanopia (blue-blind)
#FDD5CD
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f0df97;
/* rgb */ color: rgb(240, 223, 151);
/* oklch */ color: oklch(90.1% 0.093 96.5);
Tailwind
colors: {
  custom: {
    50: '#f6e8b6',
    500: '#f0df97',
    950: '#000000',
  },
}
SCSS
$custom: #f0df97;
$custom-light: #f6e8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df97",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 151
  },
  "hsl": {
    "h": 48.539,
    "s": 74.79,
    "l": 76.667
  },
  "oklch": {
    "l": 0.90114,
    "c": 0.09291,
    "h": 96.5
  },
  "luminance": 0.73535
}

Semantic roles & 50–950 ramp

primary
#F0DF97
secondary
#5E74CD
accent
#35D70F
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F0DF97

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

Preview Lab → · Contrast checker → · Palette generator →

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