#F040F9#F040F9

#F040F9 is a light, highly saturated purple. Relative luminance 0.290; OKLCH L 69.9% C 0.282 H 325.9°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#F040F9
RGBrgb(240, 64, 249)
HSLhsl(297, 94%, 61%)
HSVhsv(297, 74%, 98%)
CMYKcmyk(3.6%, 74.3%, 0%, 2.4%)
CIE-LABlab(60.81, 85.23, -56.86)
CIE-LCHlch(60.81, 102.45, 326.29°)
OKLaboklab(69.95% 0.2337 -0.1582)
OKLCHoklch(69.95% 0.282 325.9)
XYZxyz(54.8663, 29.0353, 92.3187)
Luminance0.2903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F040F9 #49F940
analogous
#9440F9 #F040F9 #F940A6
triadic
#F040F9 #F9F040 #40F9F0
tetradic
#F040F9 #F99440 #49F940 #40A6F9
square
#F040F9 #F99440 #49F940 #40A6F9
split-complementary
#F040F9 #A6F940 #40F994
monochromatic
#B006B9 #E908F4 #F040F9 #F57BFB #F9B7FD

Accessibility & contrast

On white

3.09
#F040F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#F040F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #F040F9
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F040F9#FFFFFF#000000##000000
##F040F91.003.096.816.81
#FFFFFF3.091.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FE
Deuteranopia (green-blind)
#6B9AF5
Tritanopia (blue-blind)
#F6619B
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #f040f9;
/* rgb */ color: rgb(240, 64, 249);
/* oklch */ color: oklch(69.9% 0.282 325.9);
Tailwind
colors: {
  custom: {
    50: '#f987fc',
    500: '#f040f9',
    950: '#000000',
  },
}
SCSS
$custom: #f040f9;
$custom-light: #f987fc;
$custom-dark: #000000;
JSON
{
  "hex": "#f040f9",
  "rgb": {
    "r": 240,
    "g": 64,
    "b": 249
  },
  "hsl": {
    "h": 297.081,
    "s": 93.909,
    "l": 61.373
  },
  "oklch": {
    "l": 0.69947,
    "c": 0.2822,
    "h": 325.9
  },
  "luminance": 0.29032
}

Semantic roles & 50–950 ramp

primary
#F040F9
secondary
#ABEDA8
accent
#E6000B
background
#FFF9FF
surface
#FFF1FF
border
#D7CBD7
text
#180D17
muted
#867E85

Preview Lab

Preview with #F040F9

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

Preview Lab → · Contrast checker → · Palette generator →

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