#9E40BF#9E40BF

#9E40BF is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.3% C 0.201 H 316.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#9E40BF
RGBrgb(158, 64, 191)
HSLhsl(284, 50%, 50%)
HSVhsv(284, 66%, 75%)
CMYKcmyk(17.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.22, 57.92, -49.55)
CIE-LCHlch(45.22, 76.22, 319.45°)
OKLaboklab(55.3% 0.1444 -0.1391)
OKLCHoklch(55.3% 0.201 316.1)
XYZxyz(25.3365, 14.6984, 50.7826)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40BF #61BF40
analogous
#5E40BF #9E40BF #BF40A1
triadic
#9E40BF #BF9E40 #40BF9E
tetradic
#9E40BF #BF5E40 #61BF40 #40A1BF
square
#9E40BF #BF5E40 #61BF40 #40A1BF
split-complementary
#9E40BF #A1BF40 #40BF5E
monochromatic
#522163 #783191 #9E40BF #B56ECE #CD9CDE

Accessibility & contrast

On white

5.33
#9E40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#9E40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40BF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40BF#FFFFFF#000000##FFFFFF
##9E40BF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#406EBC
Tritanopia (blue-blind)
#9C587A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9e40bf;
/* rgb */ color: rgb(158, 64, 191);
/* oklch */ color: oklch(55.3% 0.201 316.1);
Tailwind
colors: {
  custom: {
    50: '#be7cd3',
    500: '#9e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #9e40bf;
$custom-light: #be7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40bf",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 284.409,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55295,
    "c": 0.2005,
    "h": 316.1
  },
  "luminance": 0.14697
}

Semantic roles & 50–950 ramp

primary
#9E40BF
secondary
#A0CA91
accent
#D94E73
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #9E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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