#F0DC97#F0DC97

#F0DC97 is a very light, moderate yellow. Relative luminance 0.719; OKLCH L 89.5% C 0.090 H 93.9°. Best body text is #000000 at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#F0DC97
RGBrgb(240, 220, 151)
HSLhsl(47, 75%, 77%)
HSVhsv(47, 37%, 94%)
CMYKcmyk(0%, 8.3%, 37.1%, 5.9%)
CIE-LABlab(87.94, -2.79, 36.42)
CIE-LCHlch(87.94, 36.53, 94.38°)
OKLaboklab(89.51% -0.0061 0.09)
OKLCHoklch(89.51% 0.09 93.9)
XYZxyz(67.1156, 71.9482, 39.6241)
Luminance0.7195 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC97 #97ABF0
analogous
#F0B097 #F0DC97 #D8F097
triadic
#F0DC97 #97F0DC #DC97F0
tetradic
#F0DC97 #97F0B0 #97ABF0 #F097D8
square
#F0DC97 #97F0B0 #97ABF0 #F097D8
split-complementary
#F0DC97 #97D8F0 #B097F0
monochromatic
#E1B82C #E8CA62 #F0DC97 #F8EECC #FBF6E4

Accessibility & contrast

On white

1.36
#F0DC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.39
#F0DC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC97
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC97#FFFFFF#000000##000000
##F0DC971.001.3615.3915.39
#FFFFFF1.361.0021.0021.00
#00000015.3921.001.001.00
##00000015.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD992
Deuteranopia (green-blind)
#EFDF99
Tritanopia (blue-blind)
#FDD2CA
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0dc97;
/* rgb */ color: rgb(240, 220, 151);
/* oklch */ color: oklch(89.5% 0.090 93.9);
Tailwind
colors: {
  custom: {
    50: '#f6e6b6',
    500: '#f0dc97',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc97;
$custom-light: #f6e6b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc97",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 151
  },
  "hsl": {
    "h": 46.517,
    "s": 74.79,
    "l": 76.667
  },
  "oklch": {
    "l": 0.89514,
    "c": 0.09021,
    "h": 93.9
  },
  "luminance": 0.71946
}

Semantic roles & 50–950 ramp

primary
#F0DC97
secondary
#5E77CD
accent
#3CD70F
background
#FFFEFD
surface
#FFFCF8
border
#D7D5D1
text
#171511
muted
#858481

Preview Lab

Preview with #F0DC97

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

Preview Lab → · Contrast checker → · Palette generator →

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