#F0DD57#F0DD57

#F0DD57 is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 88.9% C 0.152 H 101.2°. Best body text is #000000 at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#F0DD57
RGBrgb(240, 221, 87)
HSLhsl(53, 84%, 64%)
HSVhsv(53, 64%, 94%)
CMYKcmyk(0%, 7.9%, 63.7%, 5.9%)
CIE-LABlab(87.45, -8.77, 65.90)
CIE-LCHlch(87.45, 66.48, 97.58°)
OKLaboklab(88.88% -0.0296 0.1495)
OKLCHoklch(88.88% 0.152 101.2)
XYZxyz(63.5145, 70.9289, 19.3600)
Luminance0.7093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DD57 #576AF0
analogous
#F09157 #F0DD57 #B7F057
triadic
#F0DD57 #57F0DD #DD57F0
tetradic
#F0DD57 #57F091 #576AF0 #F057B7
square
#F0DD57 #57F091 #576AF0 #F057B7
split-complementary
#F0DD57 #57B7F0 #9157F0
monochromatic
#BCA711 #EBD21F #F0DD57 #F5E88F #FAF4C7

Accessibility & contrast

On white

1.38
#F0DD57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.19
#F0DD57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DD57
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DD57#FFFFFF#000000##000000
##F0DD571.001.3815.1915.19
#FFFFFF1.381.0021.0021.00
#00000015.1921.001.001.00
##00000015.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D746
Deuteranopia (green-blind)
#F6DF5E
Tritanopia (blue-blind)
#FFCEC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dd57;
/* rgb */ color: rgb(240, 221, 87);
/* oklch */ color: oklch(88.9% 0.152 101.2);
Tailwind
colors: {
  custom: {
    50: '#f8e78c',
    500: '#f0dd57',
    950: '#000000',
  },
}
SCSS
$custom: #f0dd57;
$custom-light: #f8e78c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dd57",
  "rgb": {
    "r": 240,
    "g": 221,
    "b": 87
  },
  "hsl": {
    "h": 52.549,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.88882,
    "c": 0.15239,
    "h": 101.2
  },
  "luminance": 0.70926
}

Semantic roles & 50–950 ramp

primary
#F0DD57
secondary
#3142BA
accent
#21E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0DD57

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

Preview Lab → · Contrast checker → · Palette generator →

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