#FF40FF#FF40FF

#FF40FF is a light, highly saturated purple. Relative luminance 0.321; OKLCH L 72.4% C 0.293 H 328.1°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#FF40FF
RGBrgb(255, 64, 255)
HSLhsl(300, 100%, 63%)
HSVhsv(300, 75%, 100%)
CMYKcmyk(0%, 74.9%, 0%, 0%)
CIE-LABlab(63.47, 89.04, -55.81)
CIE-LCHlch(63.47, 105.09, 327.92°)
OKLaboklab(72.39% 0.2485 -0.1548)
OKLCHoklch(72.39% 0.293 328.1)
XYZxyz(61.1227, 32.1513, 97.5749)
Luminance0.3215 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40FF #40FF40
analogous
#9F40FF #FF40FF #FF409F
triadic
#FF40FF #FFFF40 #40FFFF
tetradic
#FF40FF #FF9F40 #40FF40 #409FFF
square
#FF40FF #FF9F40 #40FF40 #409FFF
split-complementary
#FF40FF #9FFF40 #40FF9F
monochromatic
#C500C5 #FF03FF #FF40FF #FF7DFF #FFBAFF

Accessibility & contrast

On white

2.83
#FF40FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#FF40FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF40FF
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40FF#FFFFFF#000000##000000
##FF40FF1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#058AFF
Deuteranopia (green-blind)
#77A2FA
Tritanopia (blue-blind)
#FF609E
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ff40ff;
/* rgb */ color: rgb(255, 64, 255);
/* oklch */ color: oklch(72.4% 0.293 328.1);
Tailwind
colors: {
  custom: {
    50: '#ff89ff',
    500: '#ff40ff',
    950: '#000000',
  },
}
SCSS
$custom: #ff40ff;
$custom-light: #ff89ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40ff",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 255
  },
  "hsl": {
    "h": 300,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.72389,
    "c": 0.29279,
    "h": 328.1
  },
  "luminance": 0.32147
}

Semantic roles & 50–950 ramp

primary
#FF40FF
secondary
#ABF0AB
accent
#E60000
background
#FFF9FF
surface
#FFF1FF
border
#D7CBD7
text
#190D18
muted
#877E86

Preview Lab

Preview with #FF40FF

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

Preview Lab → · Contrast checker → · Palette generator →

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