#9E40D2#9E40D2

#9E40D2 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.219 H 310.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9E40D2
RGBrgb(158, 64, 210)
HSLhsl(279, 62%, 54%)
HSVhsv(279, 70%, 82%)
CMYKcmyk(24.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(46.43, 61.86, -58.59)
CIE-LCHlch(46.43, 85.20, 316.55°)
OKLaboklab(56.55% 0.1428 -0.1657)
OKLCHoklch(56.55% 0.219 310.8)
XYZxyz(27.5646, 15.5897, 62.5173)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40D2 #74D240
analogous
#5540D2 #9E40D2 #D240BD
triadic
#9E40D2 #D29E40 #40D29E
tetradic
#9E40D2 #D25540 #74D240 #40BDD2
square
#9E40D2 #D25540 #74D240 #40BDD2
split-complementary
#9E40D2 #BDD240 #40D255
monochromatic
#591D7B #7D29AC #9E40D2 #B772DE #D0A3E9

Accessibility & contrast

On white

5.10
#9E40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9E40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40D2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40D2#FFFFFF#000000##FFFFFF
##9E40D21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#2A70CF
Tritanopia (blue-blind)
#976085
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9e40d2;
/* rgb */ color: rgb(158, 64, 210);
/* oklch */ color: oklch(56.6% 0.219 310.8);
Tailwind
colors: {
  custom: {
    50: '#bf7ce1',
    500: '#9e40d2',
    950: '#000000',
  },
}
SCSS
$custom: #9e40d2;
$custom-light: #bf7ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40d2",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 278.63,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56551,
    "c": 0.21872,
    "h": 310.8
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#9E40D2
secondary
#AED698
accent
#E5437D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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