#F04EFE#F04EFE

#F04EFE is a light, highly saturated purple. Relative luminance 0.311; OKLCH L 71.3% C 0.272 H 324.5°. Best body text is #000000 at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#F04EFE
RGBrgb(240, 78, 254)
HSLhsl(295, 99%, 65%)
HSVhsv(295, 69%, 100%)
CMYKcmyk(5.5%, 69.3%, 0%, 0.4%)
CIE-LABlab(62.62, 81.65, -56.74)
CIE-LCHlch(62.62, 99.43, 325.20°)
OKLaboklab(71.33% 0.2214 -0.1579)
OKLCHoklch(71.33% 0.272 324.5)
XYZxyz(56.5475, 31.1333, 96.7776)
Luminance0.3113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F04EFE #5CFE4E
analogous
#984EFE #F04EFE #FE4EB4
triadic
#F04EFE #FEF04E #4EFEF0
tetradic
#F04EFE #FE984E #5CFE4E #4EB4FE
square
#F04EFE #FE984E #5CFE4E #4EB4FE
split-complementary
#F04EFE #B4FE4E #4EFE98
monochromatic
#C001D0 #EB11FE #F04EFE #F58BFE #FAC8FF

Accessibility & contrast

On white

2.91
#F04EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.23
#F04EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F04EFE
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F04EFE#FFFFFF#000000##000000
##F04EFE1.002.917.237.23
#FFFFFF2.911.0021.0021.00
#0000007.2321.001.001.00
##0000007.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#198BFF
Deuteranopia (green-blind)
#6F9EFA
Tritanopia (blue-blind)
#F56CA1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #f04efe;
/* rgb */ color: rgb(240, 78, 254);
/* oklch */ color: oklch(71.3% 0.272 324.5);
Tailwind
colors: {
  custom: {
    50: '#f98dff',
    500: '#f04efe',
    950: '#000000',
  },
}
SCSS
$custom: #f04efe;
$custom-light: #f98dff;
$custom-dark: #000000;
JSON
{
  "hex": "#f04efe",
  "rgb": {
    "r": 240,
    "g": 78,
    "b": 254
  },
  "hsl": {
    "h": 295.227,
    "s": 98.876,
    "l": 65.098
  },
  "oklch": {
    "l": 0.71325,
    "c": 0.27195,
    "h": 324.5
  },
  "luminance": 0.3113
}

Semantic roles & 50–950 ramp

primary
#F04EFE
secondary
#BBF2B6
accent
#E60012
background
#FFF9FF
surface
#FFF2FF
border
#D7CCD7
text
#180D18
muted
#867E86

Preview Lab

Preview with #F04EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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