#9E40BC#9E40BC

#9E40BC is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.198 H 317.0°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9E40BC
RGBrgb(158, 64, 188)
HSLhsl(285, 49%, 49%)
HSVhsv(285, 66%, 74%)
CMYKcmyk(16%, 66%, 0%, 26.3%)
CIE-LABlab(45.04, 57.31, -48.09)
CIE-LCHlch(45.04, 74.82, 320.00°)
OKLaboklab(55.11% 0.1445 -0.1349)
OKLCHoklch(55.11% 0.198 317)
XYZxyz(25.0097, 14.5677, 49.0617)
Luminance0.1457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40BC #5EBC40
analogous
#6040BC #9E40BC #BC409C
triadic
#9E40BC #BC9E40 #40BC9E
tetradic
#9E40BC #BC6040 #5EBC40 #409CBC
square
#9E40BC #BC6040 #5EBC40 #409CBC
split-complementary
#9E40BC #9CBC40 #40BC60
monochromatic
#512161 #78308E #9E40BC #B66CCD #CC9ADD

Accessibility & contrast

On white

5.37
#9E40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9E40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40BC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40BC#FFFFFF#000000##FFFFFF
##9E40BC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A65C0
Deuteranopia (green-blind)
#426DB9
Tritanopia (blue-blind)
#9D5779
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e40bc;
/* rgb */ color: rgb(158, 64, 188);
/* oklch */ color: oklch(55.1% 0.198 317.0);
Tailwind
colors: {
  custom: {
    50: '#be7cd1',
    500: '#9e40bc',
    950: '#000000',
  },
}
SCSS
$custom: #9e40bc;
$custom-light: #be7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40bc",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 285.484,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55106,
    "c": 0.19765,
    "h": 317
  },
  "luminance": 0.14567
}

Semantic roles & 50–950 ramp

primary
#9E40BC
secondary
#9DC98F
accent
#D94F70
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9E40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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