#9E40BE#9E40BE

#9E40BE is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.200 H 316.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9E40BE
RGBrgb(158, 64, 190)
HSLhsl(285, 50%, 50%)
HSVhsv(285, 66%, 75%)
CMYKcmyk(16.8%, 66.3%, 0%, 25.5%)
CIE-LABlab(45.16, 57.72, -49.07)
CIE-LCHlch(45.16, 75.75, 319.63°)
OKLaboklab(55.23% 0.1444 -0.1377)
OKLCHoklch(55.23% 0.2 316.4)
XYZxyz(25.2268, 14.6546, 50.2050)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40BE #60BE40
analogous
#5F40BE #9E40BE #BE409F
triadic
#9E40BE #BE9E40 #40BE9E
tetradic
#9E40BE #BE5F40 #60BE40 #409FBE
square
#9E40BE #BE5F40 #60BE40 #409FBE
split-complementary
#9E40BE #9FBE40 #40BE5F
monochromatic
#522162 #783190 #9E40BE #B56DCE #CD9BDD

Accessibility & contrast

On white

5.34
#9E40BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9E40BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40BE
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40BE#FFFFFF#000000##FFFFFF
##9E40BE1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0265C2
Deuteranopia (green-blind)
#416EBB
Tritanopia (blue-blind)
#9C587A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e40be;
/* rgb */ color: rgb(158, 64, 190);
/* oklch */ color: oklch(55.2% 0.200 316.4);
Tailwind
colors: {
  custom: {
    50: '#be7cd2',
    500: '#9e40be',
    950: '#000000',
  },
}
SCSS
$custom: #9e40be;
$custom-light: #be7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40be",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 284.762,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55232,
    "c": 0.19955,
    "h": 316.4
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#9E40BE
secondary
#9FC990
accent
#D94F72
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9E40BE

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

Preview Lab → · Contrast checker → · Palette generator →

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