#F0D057#F0D057

#F0D057 is a very light, vivid yellow. Relative luminance 0.643; OKLCH L 86.3% C 0.142 H 94.4°. Best body text is #000000 at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#F0D057
RGBrgb(240, 208, 87)
HSLhsl(47, 84%, 64%)
HSVhsv(47, 64%, 94%)
CMYKcmyk(0%, 13.3%, 63.7%, 5.9%)
CIE-LABlab(84.14, -2.19, 62.36)
CIE-LCHlch(84.14, 62.40, 92.02°)
OKLaboklab(86.26% -0.0108 0.142)
OKLCHoklch(86.26% 0.142 94.4)
XYZxyz(60.2142, 64.3282, 18.2599)
Luminance0.6432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D057 #5777F0
analogous
#F08457 #F0D057 #C4F057
triadic
#F0D057 #57F0D0 #D057F0
tetradic
#F0D057 #57F084 #5777F0 #F057C4
square
#F0D057 #57F084 #5777F0 #F057C4
split-complementary
#F0D057 #57C4F0 #8457F0
monochromatic
#BC9811 #EBC01F #F0D057 #F5E08F #FAEFC7

Accessibility & contrast

On white

1.51
#F0D057 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.87
#F0D057 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D057
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D057#FFFFFF#000000##000000
##F0D0571.001.5113.8713.87
#FFFFFF1.511.0021.0021.00
#00000013.8721.001.001.00
##00000013.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E4CC49
Deuteranopia (green-blind)
#ECD65D
Tritanopia (blue-blind)
#FFC1B6
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #f0d057;
/* rgb */ color: rgb(240, 208, 87);
/* oklch */ color: oklch(86.3% 0.142 94.4);
Tailwind
colors: {
  custom: {
    50: '#f8de8b',
    500: '#f0d057',
    950: '#000000',
  },
}
SCSS
$custom: #f0d057;
$custom-light: #f8de8b;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d057",
  "rgb": {
    "r": 240,
    "g": 208,
    "b": 87
  },
  "hsl": {
    "h": 47.451,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.86256,
    "c": 0.14238,
    "h": 94.4
  },
  "luminance": 0.64325
}

Semantic roles & 50–950 ramp

primary
#F0D057
secondary
#314EBA
accent
#33E005
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F0D057

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

Preview Lab → · Contrast checker → · Palette generator →

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