#9E40BB#9E40BB

#9E40BB is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.197 H 317.3°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#9E40BB
RGBrgb(158, 64, 187)
HSLhsl(286, 49%, 49%)
HSVhsv(286, 66%, 73%)
CMYKcmyk(15.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(44.98, 57.11, -47.61)
CIE-LCHlch(44.98, 74.35, 320.19°)
OKLaboklab(55.04% 0.1445 -0.1335)
OKLCHoklch(55.04% 0.197 317.3)
XYZxyz(24.9023, 14.5248, 48.4959)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40BB #5DBB40
analogous
#6140BB #9E40BB #BB409B
triadic
#9E40BB #BB9E40 #40BB9E
tetradic
#9E40BB #BB6140 #5DBB40 #409BBB
square
#9E40BB #BB6140 #5DBB40 #409BBB
split-complementary
#9E40BB #9BBB40 #40BB61
monochromatic
#512160 #77308D #9E40BB #B66CCD #CC99DC

Accessibility & contrast

On white

5.38
#9E40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#9E40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40BB
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40BB#FFFFFF#000000##FFFFFF
##9E40BB1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E64BF
Deuteranopia (green-blind)
#436DB8
Tritanopia (blue-blind)
#9D5778
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9e40bb;
/* rgb */ color: rgb(158, 64, 187);
/* oklch */ color: oklch(55.0% 0.197 317.3);
Tailwind
colors: {
  custom: {
    50: '#be7cd0',
    500: '#9e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #9e40bb;
$custom-light: #be7cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40bb",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 285.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55043,
    "c": 0.19671,
    "h": 317.3
  },
  "luminance": 0.14524
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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