#9E40D7#9E40D7

#9E40D7 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.9% C 0.224 H 309.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#9E40D7
RGBrgb(158, 64, 215)
HSLhsl(277, 65%, 55%)
HSVhsv(277, 70%, 84%)
CMYKcmyk(26.5%, 70.2%, 0%, 15.7%)
CIE-LABlab(46.77, 62.92, -60.91)
CIE-LCHlch(46.77, 87.58, 315.93°)
OKLaboklab(56.9% 0.1422 -0.1725)
OKLCHoklch(56.9% 0.224 309.5)
XYZxyz(28.1972, 15.8427, 65.8493)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40D7 #79D740
analogous
#5340D7 #9E40D7 #D740C5
triadic
#9E40D7 #D79E40 #40D79E
tetradic
#9E40D7 #D75340 #79D740 #40C5D7
square
#9E40D7 #D75340 #79D740 #40C5D7
split-complementary
#9E40D7 #C5D740 #40D753
monochromatic
#5B1B81 #7E26B4 #9E40D7 #B873E2 #D1A5EC

Accessibility & contrast

On white

5.04
#9E40D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#9E40D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40D7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40D7#FFFFFF#000000##FFFFFF
##9E40D71.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDB
Deuteranopia (green-blind)
#2070D4
Tritanopia (blue-blind)
#966287
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e40d7;
/* rgb */ color: rgb(158, 64, 215);
/* oklch */ color: oklch(56.9% 0.224 309.5);
Tailwind
colors: {
  custom: {
    50: '#bf7de4',
    500: '#9e40d7',
    950: '#000000',
  },
}
SCSS
$custom: #9e40d7;
$custom-light: #bf7de4;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40d7",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 277.351,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56897,
    "c": 0.22354,
    "h": 309.5
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#9E40D7
secondary
#B2D99A
accent
#E83F7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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