#9E40DA#9E40DA

#9E40DA is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.1% C 0.226 H 308.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9E40DA
RGBrgb(158, 64, 218)
HSLhsl(277, 68%, 55%)
HSVhsv(277, 71%, 85%)
CMYKcmyk(27.5%, 70.6%, 0%, 14.5%)
CIE-LABlab(46.97, 63.57, -62.30)
CIE-LCHlch(46.97, 89.00, 315.58°)
OKLaboklab(57.11% 0.1418 -0.1766)
OKLCHoklch(57.11% 0.226 308.8)
XYZxyz(28.5863, 15.9983, 67.8981)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40DA #7CDA40
analogous
#5140DA #9E40DA #DA40C9
triadic
#9E40DA #DA9E40 #40DA9E
tetradic
#9E40DA #DA5140 #7CDA40 #40C9DA
square
#9E40DA #DA5140 #7CDA40 #40C9DA
split-complementary
#9E40DA #C9DA40 #40DA51
monochromatic
#5C1A86 #7F24B9 #9E40DA #B873E4 #D2A7EE

Accessibility & contrast

On white

5.00
#9E40DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#9E40DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40DA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40DA#FFFFFF#000000##FFFFFF
##9E40DA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#1970D7
Tritanopia (blue-blind)
#956389
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #9e40da;
/* rgb */ color: rgb(158, 64, 218);
/* oklch */ color: oklch(57.1% 0.226 308.8);
Tailwind
colors: {
  custom: {
    50: '#c07de6',
    500: '#9e40da',
    950: '#000000',
  },
}
SCSS
$custom: #9e40da;
$custom-light: #c07de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40da",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 276.623,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57107,
    "c": 0.22644,
    "h": 308.8
  },
  "luminance": 0.15998
}

Semantic roles & 50–950 ramp

primary
#9E40DA
secondary
#B4DB9B
accent
#EA3D81
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E40DA

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

Preview Lab → · Contrast checker → · Palette generator →

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