#9E40CC#9E40CC

#9E40CC is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.1% C 0.213 H 312.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#9E40CC
RGBrgb(158, 64, 204)
HSLhsl(280, 58%, 53%)
HSVhsv(280, 69%, 80%)
CMYKcmyk(22.5%, 68.6%, 0%, 20%)
CIE-LABlab(46.04, 60.59, -55.77)
CIE-LCHlch(46.04, 82.35, 317.37°)
OKLaboklab(56.14% 0.1434 -0.1574)
OKLCHoklch(56.14% 0.213 312.3)
XYZxyz(26.8311, 15.2963, 58.6541)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40CC #6ECC40
analogous
#5840CC #9E40CC #CC40B4
triadic
#9E40CC #CC9E40 #40CC9E
tetradic
#9E40CC #CC5840 #6ECC40 #40B4CC
square
#9E40CC #CC5840 #6ECC40 #40B4CC
split-complementary
#9E40CC #B4CC40 #40CC58
monochromatic
#571F73 #7C2CA3 #9E40CC #B770D9 #CFA1E6

Accessibility & contrast

On white

5.17
#9E40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#9E40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40CC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40CC#FFFFFF#000000##FFFFFF
##9E40CC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#326FC9
Tritanopia (blue-blind)
#995D81
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e40cc;
/* rgb */ color: rgb(158, 64, 204);
/* oklch */ color: oklch(56.1% 0.213 312.3);
Tailwind
colors: {
  custom: {
    50: '#bf7cdc',
    500: '#9e40cc',
    950: '#000000',
  },
}
SCSS
$custom: #9e40cc;
$custom-light: #bf7cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40cc",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 280.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56144,
    "c": 0.21295,
    "h": 312.3
  },
  "luminance": 0.15296
}

Semantic roles & 50–950 ramp

primary
#9E40CC
secondary
#A9D295
accent
#E14779
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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