#F04FE2#F04FE2

#F04FE2 is a light, highly saturated purple. Relative luminance 0.296; OKLCH L 69.9% C 0.250 H 331.6°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#F04FE2
RGBrgb(240, 79, 226)
HSLhsl(305, 84%, 63%)
HSVhsv(305, 67%, 94%)
CMYKcmyk(0%, 67.1%, 5.8%, 5.9%)
CIE-LABlab(61.32, 76.87, -43.24)
CIE-LCHlch(61.32, 88.19, 330.64°)
OKLaboklab(69.93% 0.2198 -0.1188)
OKLCHoklch(69.93% 0.25 331.6)
XYZxyz(52.4586, 29.6123, 74.8896)
Luminance0.2961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F04FE2 #4FF05D
analogous
#AD4FF0 #F04FE2 #F04F92
triadic
#F04FE2 #E2F04F #4FE2F0
tetradic
#F04FE2 #F0AD4F #4FF05D #4F92F0
square
#F04FE2 #F0AD4F #4FF05D #4F92F0
split-complementary
#F04FE2 #92F04F #4FF0AD
monochromatic
#B50FA7 #EB17D9 #F04FE2 #F587EB #FAC0F5

Accessibility & contrast

On white

3.03
#F04FE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#F04FE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #F04FE2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F04FE2#FFFFFF#000000##000000
##F04FE21.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4586E6
Deuteranopia (green-blind)
#7F9CDE
Tritanopia (blue-blind)
#FA6092
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #f04fe2;
/* rgb */ color: rgb(240, 79, 226);
/* oklch */ color: oklch(69.9% 0.250 331.6);
Tailwind
colors: {
  custom: {
    50: '#f98deb',
    500: '#f04fe2',
    950: '#000000',
  },
}
SCSS
$custom: #f04fe2;
$custom-light: #f98deb;
$custom-dark: #000000;
JSON
{
  "hex": "#f04fe2",
  "rgb": {
    "r": 240,
    "g": 79,
    "b": 226
  },
  "hsl": {
    "h": 305.217,
    "s": 84.293,
    "l": 62.549
  },
  "oklch": {
    "l": 0.69928,
    "c": 0.24981,
    "h": 331.6
  },
  "luminance": 0.29608
}

Semantic roles & 50–950 ramp

primary
#F04FE2
secondary
#B0EBB5
accent
#E11805
background
#FFF9FE
surface
#FFF1FD
border
#D7CBD5
text
#180D16
muted
#867E84

Preview Lab

Preview with #F04FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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