#FF40E7#FF40E7

#FF40E7 is a light, highly saturated purple. Relative luminance 0.307; OKLCH L 71.1% C 0.277 H 333.9°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#FF40E7
RGBrgb(255, 64, 231)
HSLhsl(308, 100%, 63%)
HSVhsv(308, 75%, 100%)
CMYKcmyk(0%, 74.9%, 9.4%, 0%)
CIE-LABlab(62.25, 85.57, -44.40)
CIE-LCHlch(62.25, 96.40, 332.57°)
OKLaboklab(71.13% 0.2483 -0.1217)
OKLCHoklch(71.13% 0.277 333.9)
XYZxyz(57.4977, 30.7014, 78.4835)
Luminance0.3070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40E7 #40FF58
analogous
#B740FF #FF40E7 #FF4088
triadic
#FF40E7 #E7FF40 #40E7FF
tetradic
#FF40E7 #FFB740 #40FF58 #4088FF
square
#FF40E7 #FFB740 #40FF58 #4088FF
split-complementary
#FF40E7 #88FF40 #40FFB7
monochromatic
#C500AC #FF03DF #FF40E7 #FF7DEF #FFBAF6

Accessibility & contrast

On white

2.94
#FF40E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#FF40E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF40E7
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40E7#FFFFFF#000000##000000
##FF40E71.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A85EB
Deuteranopia (green-blind)
#84A0E3
Tritanopia (blue-blind)
#FF5391
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ff40e7;
/* rgb */ color: rgb(255, 64, 231);
/* oklch */ color: oklch(71.1% 0.277 333.9);
Tailwind
colors: {
  custom: {
    50: '#ff88ef',
    500: '#ff40e7',
    950: '#000000',
  },
}
SCSS
$custom: #ff40e7;
$custom-light: #ff88ef;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40e7",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 307.539,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.7113,
    "c": 0.2765,
    "h": 333.9
  },
  "luminance": 0.30696
}

Semantic roles & 50–950 ramp

primary
#FF40E7
secondary
#ABF0B3
accent
#E61D00
background
#FFF9FE
surface
#FFF1FD
border
#D7CBD5
text
#190D16
muted
#877E84

Preview Lab

Preview with #FF40E7

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

Preview Lab → · Contrast checker → · Palette generator →

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