#F0DE57#F0DE57

#F0DE57 is a very light, vivid yellow. Relative luminance 0.715; OKLCH L 89.1% C 0.153 H 101.7°. Best body text is #000000 at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#F0DE57
RGBrgb(240, 222, 87)
HSLhsl(53, 84%, 64%)
HSVhsv(53, 64%, 94%)
CMYKcmyk(0%, 7.5%, 63.7%, 5.9%)
CIE-LABlab(87.71, -9.27, 66.17)
CIE-LCHlch(87.71, 66.82, 97.98°)
OKLaboklab(89.09% -0.0311 0.1501)
OKLCHoklch(89.09% 0.153 101.7)
XYZxyz(63.7793, 71.4586, 19.4483)
Luminance0.7146 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DE57 #5769F0
analogous
#F09257 #F0DE57 #B6F057
triadic
#F0DE57 #57F0DE #DE57F0
tetradic
#F0DE57 #57F092 #5769F0 #F057B6
square
#F0DE57 #57F092 #5769F0 #F057B6
split-complementary
#F0DE57 #57B6F0 #9257F0
monochromatic
#BCA811 #EBD31F #F0DE57 #F5E98F #FAF4C7

Accessibility & contrast

On white

1.37
#F0DE57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.29
#F0DE57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DE57
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DE57#FFFFFF#000000##000000
##F0DE571.001.3715.2915.29
#FFFFFF1.371.0021.0021.00
#00000015.2921.001.001.00
##00000015.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D846
Deuteranopia (green-blind)
#F7DF5F
Tritanopia (blue-blind)
#FFCFC2
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f0de57;
/* rgb */ color: rgb(240, 222, 87);
/* oklch */ color: oklch(89.1% 0.153 101.7);
Tailwind
colors: {
  custom: {
    50: '#f8e88c',
    500: '#f0de57',
    950: '#000000',
  },
}
SCSS
$custom: #f0de57;
$custom-light: #f8e88c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0de57",
  "rgb": {
    "r": 240,
    "g": 222,
    "b": 87
  },
  "hsl": {
    "h": 52.941,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.89086,
    "c": 0.15323,
    "h": 101.7
  },
  "luminance": 0.71456
}

Semantic roles & 50–950 ramp

primary
#F0DE57
secondary
#3141BA
accent
#1FE005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F0DE57

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

Preview Lab → · Contrast checker → · Palette generator →

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