#9E40AE#9E40AE

#9E40AE is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.3% C 0.185 H 321.6°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#9E40AE
RGBrgb(158, 64, 174)
HSLhsl(291, 46%, 47%)
HSVhsv(291, 63%, 68%)
CMYKcmyk(9.2%, 63.2%, 0%, 31.8%)
CIE-LABlab(44.22, 54.56, -41.17)
CIE-LCHlch(44.22, 68.35, 322.96°)
OKLaboklab(54.26% 0.1446 -0.1147)
OKLCHoklch(54.26% 0.185 321.6)
XYZxyz(23.5731, 13.9931, 41.4954)
Luminance0.1399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40AE #50AE40
analogous
#6740AE #9E40AE #AE4087
triadic
#9E40AE #AE9E40 #40AE9E
tetradic
#9E40AE #AE6740 #50AE40 #4087AE
square
#9E40AE #AE6740 #50AE40 #4087AE
split-complementary
#9E40AE #87AE40 #40AE67
monochromatic
#4D1F55 #753081 #9E40AE #B865C6 #CD92D7

Accessibility & contrast

On white

5.53
#9E40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#9E40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40AE
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40AE#FFFFFF#000000##FFFFFF
##9E40AE1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2662B1
Deuteranopia (green-blind)
#4C6CAB
Tritanopia (blue-blind)
#A05271
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9e40ae;
/* rgb */ color: rgb(158, 64, 174);
/* oklch */ color: oklch(54.3% 0.185 321.6);
Tailwind
colors: {
  custom: {
    50: '#be7bc7',
    500: '#9e40ae',
    950: '#000000',
  },
}
SCSS
$custom: #9e40ae;
$custom-light: #be7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40ae",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 291.273,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.18451,
    "h": 321.6
  },
  "luminance": 0.13992
}

Semantic roles & 50–950 ramp

primary
#9E40AE
secondary
#90C288
accent
#D65265
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9E40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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