#F0DC57#F0DC57

#F0DC57 is a very light, vivid yellow. Relative luminance 0.704; OKLCH L 88.7% C 0.152 H 100.7°. Best body text is #000000 at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#F0DC57
RGBrgb(240, 220, 87)
HSLhsl(52, 84%, 64%)
HSVhsv(52, 64%, 94%)
CMYKcmyk(0%, 8.3%, 63.7%, 5.9%)
CIE-LABlab(87.19, -8.27, 65.63)
CIE-LCHlch(87.19, 66.15, 97.18°)
OKLaboklab(88.68% -0.0282 0.1489)
OKLCHoklch(88.68% 0.152 100.7)
XYZxyz(63.2513, 70.4025, 19.2723)
Luminance0.7040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC57 #576BF0
analogous
#F09057 #F0DC57 #B8F057
triadic
#F0DC57 #57F0DC #DC57F0
tetradic
#F0DC57 #57F090 #576BF0 #F057B8
square
#F0DC57 #57F090 #576BF0 #F057B8
split-complementary
#F0DC57 #57B8F0 #9057F0
monochromatic
#BCA511 #EBD01F #F0DC57 #F5E88F #FAF3C7

Accessibility & contrast

On white

1.39
#F0DC57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.08
#F0DC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC57
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC57#FFFFFF#000000##000000
##F0DC571.001.3915.0815.08
#FFFFFF1.391.0021.0021.00
#00000015.0821.001.001.00
##00000015.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD647
Deuteranopia (green-blind)
#F5DE5E
Tritanopia (blue-blind)
#FFCDC0
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f0dc57;
/* rgb */ color: rgb(240, 220, 87);
/* oklch */ color: oklch(88.7% 0.152 100.7);
Tailwind
colors: {
  custom: {
    50: '#f8e68c',
    500: '#f0dc57',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc57;
$custom-light: #f8e68c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc57",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 87
  },
  "hsl": {
    "h": 52.157,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.88678,
    "c": 0.15155,
    "h": 100.7
  },
  "luminance": 0.704
}

Semantic roles & 50–950 ramp

primary
#F0DC57
secondary
#3143BA
accent
#22E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0DC57

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

Preview Lab → · Contrast checker → · Palette generator →

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