#9E40BA#9E40BA

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

Color values

HEX#9E40BA
RGBrgb(158, 64, 186)
HSLhsl(286, 49%, 49%)
HSVhsv(286, 66%, 73%)
CMYKcmyk(15.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(44.92, 56.91, -47.12)
CIE-LCHlch(44.92, 73.89, 320.38°)
OKLaboklab(54.98% 0.1445 -0.132)
OKLCHoklch(54.98% 0.196 317.6)
XYZxyz(24.7956, 14.4821, 47.9341)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40BA #5CBA40
analogous
#6140BA #9E40BA #BA4099
triadic
#9E40BA #BA9E40 #40BA9E
tetradic
#9E40BA #BA6140 #5CBA40 #4099BA
square
#9E40BA #BA6140 #5CBA40 #4099BA
split-complementary
#9E40BA #99BA40 #40BA61
monochromatic
#51215F #77308C #9E40BA #B66BCC #CC99DC

Accessibility & contrast

On white

5.39
#9E40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E40BA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40BA#FFFFFF#000000##FFFFFF
##9E40BA1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1164BE
Deuteranopia (green-blind)
#446DB7
Tritanopia (blue-blind)
#9D5678
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9e40ba;
/* rgb */ color: rgb(158, 64, 186);
/* oklch */ color: oklch(55.0% 0.196 317.6);
Tailwind
colors: {
  custom: {
    50: '#be7ccf',
    500: '#9e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #9e40ba;
$custom-light: #be7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40ba",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 286.23,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.54981,
    "c": 0.19576,
    "h": 317.6
  },
  "luminance": 0.14481
}

Semantic roles & 50–950 ramp

primary
#9E40BA
secondary
#9BC88E
accent
#D84F6F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#120A14
muted
#817C82

Preview Lab

Preview with #9E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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