#9E40CA#9E40CA

#9E40CA is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.211 H 312.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9E40CA
RGBrgb(158, 64, 202)
HSLhsl(281, 57%, 52%)
HSVhsv(281, 68%, 79%)
CMYKcmyk(21.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(45.91, 60.18, -54.83)
CIE-LCHlch(45.91, 81.41, 317.66°)
OKLaboklab(56.01% 0.1436 -0.1546)
OKLCHoklch(56.01% 0.211 312.9)
XYZxyz(26.5927, 15.2009, 57.3989)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40CA #6CCA40
analogous
#5940CA #9E40CA #CA40B1
triadic
#9E40CA #CA9E40 #40CA9E
tetradic
#9E40CA #CA5940 #6CCA40 #40B1CA
square
#9E40CA #CA5940 #6CCA40 #40B1CA
split-complementary
#9E40CA #B1CA40 #40CA59
monochromatic
#571F70 #7B2CA0 #9E40CA #B670D7 #CFA0E5

Accessibility & contrast

On white

5.20
#9E40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9E40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40CA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40CA#FFFFFF#000000##FFFFFF
##9E40CA1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#356FC7
Tritanopia (blue-blind)
#995C80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e40ca;
/* rgb */ color: rgb(158, 64, 202);
/* oklch */ color: oklch(56.0% 0.211 312.9);
Tailwind
colors: {
  custom: {
    50: '#bf7cdb',
    500: '#9e40ca',
    950: '#000000',
  },
}
SCSS
$custom: #9e40ca;
$custom-light: #bf7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40ca",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 280.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5601,
    "c": 0.21102,
    "h": 312.9
  },
  "luminance": 0.152
}

Semantic roles & 50–950 ramp

primary
#9E40CA
secondary
#A8D195
accent
#E04878
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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