#F0FA57#F0FA57

#F0FA57 is a very light, vivid yellow. Relative luminance 0.876; OKLCH L 94.9% C 0.180 H 112.7°. Best body text is #000000 at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#F0FA57
RGBrgb(240, 250, 87)
HSLhsl(64, 94%, 66%)
HSVhsv(64, 65%, 98%)
CMYKcmyk(4%, 0%, 65.2%, 2%)
CIE-LABlab(94.99, -22.93, 73.75)
CIE-LCHlch(94.99, 77.24, 107.27°)
OKLaboklab(94.89% -0.0696 0.1661)
OKLCHoklch(94.89% 0.18 112.7)
XYZxyz(71.8431, 87.5861, 22.1362)
Luminance0.8759 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0FA57 #6157FA
analogous
#FAB257 #F0FA57 #9EFA57
triadic
#F0FA57 #57F0FA #FA57F0
tetradic
#F0FA57 #57FAB2 #6157FA #FA579E
square
#F0FA57 #57FAB2 #6157FA #FA579E
split-complementary
#F0FA57 #579EFA #B257FA
monochromatic
#C4D006 #EBF81C #F0FA57 #F5FC92 #FBFECE

Accessibility & contrast

On white

1.13
#F0FA57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.52
#F0FA57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0FA57
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0FA57#FFFFFF#000000##000000
##F0FA571.001.1318.5218.52
#FFFFFF1.131.0021.0021.00
#00000018.5221.001.001.00
##00000018.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF40
Deuteranopia (green-blind)
#FFF262
Tritanopia (blue-blind)
#FFECD9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f0fa57;
/* rgb */ color: rgb(240, 250, 87);
/* oklch */ color: oklch(94.9% 0.180 112.7);
Tailwind
colors: {
  custom: {
    50: '#f8fb8e',
    500: '#f0fa57',
    950: '#000000',
  },
}
SCSS
$custom: #f0fa57;
$custom-light: #f8fb8e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0fa57",
  "rgb": {
    "r": 240,
    "g": 250,
    "b": 87
  },
  "hsl": {
    "h": 63.681,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.94889,
    "c": 0.18007,
    "h": 112.7
  },
  "luminance": 0.87585
}

Semantic roles & 50–950 ramp

primary
#F0FA57
secondary
#342ACB
accent
#00E60E
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F0FA57

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

Preview Lab → · Contrast checker → · Palette generator →

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