#F0DE7C#F0DE7C

#F0DE7C is a very light, vivid yellow. Relative luminance 0.722; OKLCH L 89.5% C 0.121 H 99.1°. Best body text is #000000 at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#F0DE7C
RGBrgb(240, 222, 124)
HSLhsl(51, 79%, 71%)
HSVhsv(51, 48%, 94%)
CMYKcmyk(0%, 7.5%, 48.3%, 5.9%)
CIE-LABlab(88.08, -6.52, 49.96)
CIE-LCHlch(88.08, 50.39, 97.44°)
OKLaboklab(89.5% -0.0192 0.1192)
OKLCHoklch(89.5% 0.121 99.1)
XYZxyz(65.6965, 72.2254, 29.5452)
Luminance0.7222 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DE7C #7C8EF0
analogous
#F0A47C #F0DE7C #C8F07C
triadic
#F0DE7C #7CF0DE #DE7CF0
tetradic
#F0DE7C #7CF0A4 #7C8EF0 #F07CC8
square
#F0DE7C #7CF0A4 #7C8EF0 #F07CC8
split-complementary
#F0DE7C #7CC8F0 #A47CF0
monochromatic
#D9BB19 #EAD045 #F0DE7C #F6ECB3 #FCF8E4

Accessibility & contrast

On white

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

On black

15.44
#F0DE7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DE7C
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DE7C#FFFFFF#000000##000000
##F0DE7C1.001.3615.4415.44
#FFFFFF1.361.0021.0021.00
#00000015.4421.001.001.00
##00000015.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD974
Deuteranopia (green-blind)
#F4E080
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f0de7c;
/* rgb */ color: rgb(240, 222, 124);
/* oklch */ color: oklch(89.5% 0.121 99.1);
Tailwind
colors: {
  custom: {
    50: '#f7e8a4',
    500: '#f0de7c',
    950: '#000000',
  },
}
SCSS
$custom: #f0de7c;
$custom-light: #f7e8a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f0de7c",
  "rgb": {
    "r": 240,
    "g": 222,
    "b": 124
  },
  "hsl": {
    "h": 50.69,
    "s": 79.452,
    "l": 71.373
  },
  "oklch": {
    "l": 0.89498,
    "c": 0.12075,
    "h": 99.1
  },
  "luminance": 0.72223
}

Semantic roles & 50–950 ramp

primary
#F0DE7C
secondary
#465ACA
accent
#2ADC0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DE7C

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

Preview Lab → · Contrast checker → · Palette generator →

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