#FF40E8#FF40E8

#FF40E8 is a light, highly saturated purple. Relative luminance 0.308; OKLCH L 71.2% C 0.277 H 333.6°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#FF40E8
RGBrgb(255, 64, 232)
HSLhsl(307, 100%, 63%)
HSVhsv(307, 75%, 100%)
CMYKcmyk(0%, 74.9%, 9%, 0%)
CIE-LABlab(62.30, 85.71, -44.88)
CIE-LCHlch(62.30, 96.75, 332.36°)
OKLaboklab(71.18% 0.2483 -0.1231)
OKLCHoklch(71.18% 0.277 333.6)
XYZxyz(57.6394, 30.7580, 79.2295)
Luminance0.3075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF40E8 #40FF57
analogous
#B640FF #FF40E8 #FF4089
triadic
#FF40E8 #E8FF40 #40E8FF
tetradic
#FF40E8 #FFB640 #40FF57 #4089FF
square
#FF40E8 #FFB640 #40FF57 #4089FF
split-complementary
#FF40E8 #89FF40 #40FFB6
monochromatic
#C500AD #FF03E1 #FF40E8 #FF7DEF #FFBAF7

Accessibility & contrast

On white

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

On black

7.15
#FF40E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF40E8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF40E8#FFFFFF#000000##000000
##FF40E81.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3985EC
Deuteranopia (green-blind)
#83A0E4
Tritanopia (blue-blind)
#FF5492
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ff40e8;
/* rgb */ color: rgb(255, 64, 232);
/* oklch */ color: oklch(71.2% 0.277 333.6);
Tailwind
colors: {
  custom: {
    50: '#ff88f0',
    500: '#ff40e8',
    950: '#000000',
  },
}
SCSS
$custom: #ff40e8;
$custom-light: #ff88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#ff40e8",
  "rgb": {
    "r": 255,
    "g": 64,
    "b": 232
  },
  "hsl": {
    "h": 307.225,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.7118,
    "c": 0.27716,
    "h": 333.6
  },
  "luminance": 0.30753
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FF40E8

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

Preview Lab → · Contrast checker → · Palette generator →

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