#F0DF89#F0DF89

#F0DF89 is a very light, moderate yellow. Relative luminance 0.731; OKLCH L 89.9% C 0.108 H 98.4°. Best body text is #000000 at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#F0DF89
RGBrgb(240, 223, 137)
HSLhsl(50, 77%, 74%)
HSVhsv(50, 43%, 94%)
CMYKcmyk(0%, 7.1%, 42.9%, 5.9%)
CIE-LABlab(88.50, -5.80, 44.15)
CIE-LCHlch(88.50, 44.53, 97.48°)
OKLaboklab(89.89% -0.0158 0.1071)
OKLCHoklch(89.89% 0.108 98.4)
XYZxyz(66.8398, 73.1090, 34.2526)
Luminance0.7311 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF89 #899AF0
analogous
#F0AC89 #F0DF89 #CEF089
triadic
#F0DF89 #89F0DF #DF89F0
tetradic
#F0DF89 #89F0AC #899AF0 #F089CE
square
#F0DF89 #89F0AC #899AF0 #F089CE
split-complementary
#F0DF89 #89CEF0 #AC89F0
monochromatic
#E2C11D #E9D053 #F0DF89 #F7EEBF #FCF8E4

Accessibility & contrast

On white

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

On black

15.62
#F0DF89 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF89
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF89#FFFFFF#000000##000000
##F0DF891.001.3415.6215.62
#FFFFFF1.341.0021.0021.00
#00000015.6221.001.001.00
##00000015.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#EEDB82
Deuteranopia (green-blind)
#F3E18C
Tritanopia (blue-blind)
#FED4CA
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f0df89;
/* rgb */ color: rgb(240, 223, 137);
/* oklch */ color: oklch(89.9% 0.108 98.4);
Tailwind
colors: {
  custom: {
    50: '#f6e8ac',
    500: '#f0df89',
    950: '#000000',
  },
}
SCSS
$custom: #f0df89;
$custom-light: #f6e8ac;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df89",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 137
  },
  "hsl": {
    "h": 50.097,
    "s": 77.444,
    "l": 73.922
  },
  "oklch": {
    "l": 0.89887,
    "c": 0.10826,
    "h": 98.4
  },
  "luminance": 0.73107
}

Semantic roles & 50–950 ramp

primary
#F0DF89
secondary
#5266CC
accent
#2EDA0C
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#171610
muted
#858481

Preview Lab

Preview with #F0DF89

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

Preview Lab → · Contrast checker → · Palette generator →

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