#F0DB57#F0DB57

#F0DB57 is a very light, vivid yellow. Relative luminance 0.699; OKLCH L 88.5% C 0.151 H 100.2°. Best body text is #000000 at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#F0DB57
RGBrgb(240, 219, 87)
HSLhsl(52, 84%, 64%)
HSVhsv(52, 64%, 94%)
CMYKcmyk(0%, 8.8%, 63.7%, 5.9%)
CIE-LABlab(86.94, -7.77, 65.35)
CIE-LCHlch(86.94, 65.81, 96.78°)
OKLaboklab(88.48% -0.0268 0.1483)
OKLCHoklch(88.48% 0.151 100.2)
XYZxyz(62.9896, 69.8791, 19.1851)
Luminance0.6988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DB57 #576CF0
analogous
#F08F57 #F0DB57 #B9F057
triadic
#F0DB57 #57F0DB #DB57F0
tetradic
#F0DB57 #57F08F #576CF0 #F057B9
square
#F0DB57 #57F08F #576CF0 #F057B9
split-complementary
#F0DB57 #57B9F0 #8F57F0
monochromatic
#BCA411 #EBCF1F #F0DB57 #F5E78F #FAF3C7

Accessibility & contrast

On white

1.40
#F0DB57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.98
#F0DB57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DB57
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DB57#FFFFFF#000000##000000
##F0DB571.001.4014.9814.98
#FFFFFF1.401.0021.0021.00
#00000014.9821.001.001.00
##00000014.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED547
Deuteranopia (green-blind)
#F4DD5E
Tritanopia (blue-blind)
#FFCCBF
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f0db57;
/* rgb */ color: rgb(240, 219, 87);
/* oklch */ color: oklch(88.5% 0.151 100.2);
Tailwind
colors: {
  custom: {
    50: '#f8e58c',
    500: '#f0db57',
    950: '#000000',
  },
}
SCSS
$custom: #f0db57;
$custom-light: #f8e58c;
$custom-dark: #000000;
JSON
{
  "hex": "#f0db57",
  "rgb": {
    "r": 240,
    "g": 219,
    "b": 87
  },
  "hsl": {
    "h": 51.765,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.88475,
    "c": 0.15072,
    "h": 100.2
  },
  "luminance": 0.69876
}

Semantic roles & 50–950 ramp

primary
#F0DB57
secondary
#3144BA
accent
#23E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0DB57

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

Preview Lab → · Contrast checker → · Palette generator →

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