#FF40E6#FF40E6

#FF40E6 is a light, highly saturated purple. Relative luminance 0.306; OKLCH L 71.1% C 0.276 H 334.1°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#FF40E6
RGBrgb(255, 64, 230)
HSLhsl(308, 100%, 63%)
HSVhsv(308, 75%, 100%)
CMYKcmyk(0%, 74.9%, 9.8%, 0%)
CIE-LABlab(62.21, 85.43, -43.92)
CIE-LCHlch(62.21, 96.05, 332.79°)
OKLaboklab(71.08% 0.2482 -0.1203)
OKLCHoklch(71.08% 0.276 334.1)
XYZxyz(57.3569, 30.6450, 77.7418)
Luminance0.3064 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40E6 #40FF59
analogous
#B840FF #FF40E6 #FF4087
triadic
#FF40E6 #E6FF40 #40E6FF
tetradic
#FF40E6 #FFB840 #40FF59 #4087FF
square
#FF40E6 #FFB840 #40FF59 #4087FF
split-complementary
#FF40E6 #87FF40 #40FFB8
monochromatic
#C500AB #FF03DE #FF40E6 #FF7DEE #FFBAF6

Accessibility & contrast

On white

2.95
#FF40E6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#FF40E6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF40E6
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40E6#FFFFFF#000000##000000
##FF40E61.002.957.137.13
#FFFFFF2.951.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B85EA
Deuteranopia (green-blind)
#84A0E2
Tritanopia (blue-blind)
#FF5390
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ff40e6;
/* rgb */ color: rgb(255, 64, 230);
/* oklch */ color: oklch(71.1% 0.276 334.1);
Tailwind
colors: {
  custom: {
    50: '#ff88ee',
    500: '#ff40e6',
    950: '#000000',
  },
}
SCSS
$custom: #ff40e6;
$custom-light: #ff88ee;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40e6",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 230
  },
  "hsl": {
    "h": 307.853,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.7108,
    "c": 0.27585,
    "h": 334.1
  },
  "luminance": 0.3064
}

Semantic roles & 50–950 ramp

primary
#FF40E6
secondary
#ABF0B4
accent
#E61E00
background
#FFF9FE
surface
#FFF1FD
border
#D7CBD5
text
#190D16
muted
#877E84

Preview Lab

Preview with #FF40E6

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

Preview Lab → · Contrast checker → · Palette generator →

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