#9E40CE#9E40CE

#9E40CE is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.215 H 311.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#9E40CE
RGBrgb(158, 64, 206)
HSLhsl(280, 59%, 53%)
HSVhsv(280, 69%, 81%)
CMYKcmyk(23.3%, 68.9%, 0%, 19.2%)
CIE-LABlab(46.17, 61.01, -56.72)
CIE-LCHlch(46.17, 83.30, 317.09°)
OKLaboklab(56.28% 0.1432 -0.1602)
OKLCHoklch(56.28% 0.215 311.8)
XYZxyz(27.0725, 15.3928, 59.9255)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40CE #70CE40
analogous
#5740CE #9E40CE #CE40B7
triadic
#9E40CE #CE9E40 #40CE9E
tetradic
#9E40CE #CE5740 #70CE40 #40B7CE
square
#9E40CE #CE5740 #70CE40 #40B7CE
split-complementary
#9E40CE #B7CE40 #40CE57
monochromatic
#581E75 #7C2BA6 #9E40CE #B771DA #CFA1E7

Accessibility & contrast

On white

5.15
#9E40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#9E40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40CE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40CE#FFFFFF#000000##FFFFFF
##9E40CE1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#306FCB
Tritanopia (blue-blind)
#985E82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e40ce;
/* rgb */ color: rgb(158, 64, 206);
/* oklch */ color: oklch(56.3% 0.215 311.8);
Tailwind
colors: {
  custom: {
    50: '#bf7cde',
    500: '#9e40ce',
    950: '#000000',
  },
}
SCSS
$custom: #9e40ce;
$custom-light: #bf7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40ce",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 279.718,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56278,
    "c": 0.21487,
    "h": 311.8
  },
  "luminance": 0.15392
}

Semantic roles & 50–950 ramp

primary
#9E40CE
secondary
#ABD496
accent
#E2457A
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40CE

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

Preview Lab → · Contrast checker → · Palette generator →

#9E40CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva