#9E40AB#9E40AB

#9E40AB is a mid, vivid purple. Relative luminance 0.139; OKLCH L 54.1% C 0.182 H 322.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#9E40AB
RGBrgb(158, 64, 171)
HSLhsl(293, 46%, 46%)
HSVhsv(293, 63%, 67%)
CMYKcmyk(7.6%, 62.6%, 0%, 32.9%)
CIE-LABlab(44.06, 53.99, -39.66)
CIE-LCHlch(44.06, 66.99, 323.70°)
OKLaboklab(54.08% 0.1445 -0.1103)
OKLCHoklch(54.08% 0.182 322.6)
XYZxyz(23.2839, 13.8774, 39.9723)
Luminance0.1388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40AB #4DAB40
analogous
#6840AB #9E40AB #AB4082
triadic
#9E40AB #AB9E40 #40AB9E
tetradic
#9E40AB #AB6840 #4DAB40 #4082AB
square
#9E40AB #AB6840 #4DAB40 #4082AB
split-complementary
#9E40AB #82AB40 #40AB68
monochromatic
#4C1F52 #752F7E #9E40AB #B963C5 #CD90D5

Accessibility & contrast

On white

5.56
#9E40AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#9E40AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40AB
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40AB#FFFFFF#000000##FFFFFF
##9E40AB1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#4E6CA8
Tritanopia (blue-blind)
#A05070
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9e40ab;
/* rgb */ color: rgb(158, 64, 171);
/* oklch */ color: oklch(54.1% 0.182 322.6);
Tailwind
colors: {
  custom: {
    50: '#be7bc4',
    500: '#9e40ab',
    950: '#000000',
  },
}
SCSS
$custom: #9e40ab;
$custom-light: #be7bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40ab",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 292.71,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54082,
    "c": 0.18174,
    "h": 322.6
  },
  "luminance": 0.13876
}

Semantic roles & 50–950 ramp

primary
#9E40AB
secondary
#8DC186
accent
#D55362
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120A13
muted
#817C82

Preview Lab

Preview with #9E40AB

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

Preview Lab → · Contrast checker → · Palette generator →

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