#F054F8#F054F8

#F054F8 is a light, highly saturated purple. Relative luminance 0.316; OKLCH L 71.5% C 0.261 H 325.8°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#F054F8
RGBrgb(240, 84, 248)
HSLhsl(297, 92%, 65%)
HSVhsv(297, 66%, 97%)
CMYKcmyk(3.2%, 66.1%, 0%, 2.7%)
CIE-LABlab(63.05, 78.55, -52.75)
CIE-LCHlch(63.05, 94.62, 326.12°)
OKLaboklab(71.53% 0.2156 -0.1464)
OKLCHoklch(71.53% 0.261 325.8)
XYZxyz(56.0476, 31.6468, 91.9451)
Luminance0.3164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F054F8 #5CF854
analogous
#9E54F8 #F054F8 #F854AE
triadic
#F054F8 #F8F054 #54F8F0
tetradic
#F054F8 #F89E54 #5CF854 #54AEF8
square
#F054F8 #F89E54 #5CF854 #54AEF8
split-complementary
#F054F8 #AEF854 #54F89E
monochromatic
#C008C9 #EB19F6 #F054F8 #F58FFA #FACAFD

Accessibility & contrast

On white

2.87
#F054F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#F054F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F054F8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F054F8#FFFFFF#000000##000000
##F054F81.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#338CFD
Deuteranopia (green-blind)
#769FF4
Tritanopia (blue-blind)
#F66DA0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #f054f8;
/* rgb */ color: rgb(240, 84, 248);
/* oklch */ color: oklch(71.5% 0.261 325.8);
Tailwind
colors: {
  custom: {
    50: '#f990fb',
    500: '#f054f8',
    950: '#000000',
  },
}
SCSS
$custom: #f054f8;
$custom-light: #f990fb;
$custom-dark: #000000;
JSON
{
  "hex": "#f054f8",
  "rgb": {
    "r": 240,
    "g": 84,
    "b": 248
  },
  "hsl": {
    "h": 297.073,
    "s": 92.135,
    "l": 65.098
  },
  "oklch": {
    "l": 0.71531,
    "c": 0.26054,
    "h": 325.8
  },
  "luminance": 0.31643
}

Semantic roles & 50–950 ramp

primary
#F054F8
secondary
#BBF0B8
accent
#E6000B
background
#FFF9FF
surface
#FFF2FF
border
#D7CCD7
text
#180E17
muted
#867E85

Preview Lab

Preview with #F054F8

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

Preview Lab → · Contrast checker → · Palette generator →

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