#9E40DE#9E40DE

#9E40DE is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.4% C 0.230 H 307.8°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#9E40DE
RGBrgb(158, 64, 222)
HSLhsl(276, 71%, 56%)
HSVhsv(276, 71%, 87%)
CMYKcmyk(28.8%, 71.2%, 0%, 12.9%)
CIE-LABlab(47.25, 64.43, -64.13)
CIE-LCHlch(47.25, 90.90, 315.13°)
OKLaboklab(57.39% 0.1412 -0.1819)
OKLCHoklch(57.39% 0.23 307.8)
XYZxyz(29.1160, 16.2102, 70.6881)
Luminance0.1621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40DE #80DE40
analogous
#4F40DE #9E40DE #DE40CF
triadic
#9E40DE #DE9E40 #40DE9E
tetradic
#9E40DE #DE4F40 #80DE40 #40CFDE
square
#9E40DE #DE4F40 #80DE40 #40CFDE
split-complementary
#9E40DE #CFDE40 #40DE4F
monochromatic
#5D188B #7F21C0 #9E40DE #B974E7 #D3A8F0

Accessibility & contrast

On white

4.95
#9E40DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#9E40DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40DE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40DE#FFFFFF#000000##FFFFFF
##9E40DE1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE3
Deuteranopia (green-blind)
#0B71DB
Tritanopia (blue-blind)
#94648B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9e40de;
/* rgb */ color: rgb(158, 64, 222);
/* oklch */ color: oklch(57.4% 0.230 307.8);
Tailwind
colors: {
  custom: {
    50: '#c07de9',
    500: '#9e40de',
    950: '#000000',
  },
}
SCSS
$custom: #9e40de;
$custom-light: #c07de9;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40de",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 275.696,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57391,
    "c": 0.2303,
    "h": 307.8
  },
  "luminance": 0.1621
}

Semantic roles & 50–950 ramp

primary
#9E40DE
secondary
#B7DE9C
accent
#ED3A83
background
#FCF7FE
surface
#F8EEFD
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9E40DE

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

Preview Lab → · Contrast checker → · Palette generator →

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