#9E40CF#9E40CF

#9E40CF is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.3% C 0.216 H 311.5°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#9E40CF
RGBrgb(158, 64, 207)
HSLhsl(279, 60%, 53%)
HSVhsv(279, 69%, 81%)
CMYKcmyk(23.7%, 69.1%, 0%, 18.8%)
CIE-LABlab(46.23, 61.22, -57.19)
CIE-LCHlch(46.23, 83.78, 316.95°)
OKLaboklab(56.35% 0.1431 -0.1615)
OKLCHoklch(56.35% 0.216 311.5)
XYZxyz(27.1943, 15.4416, 60.5674)
Luminance0.1544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E40CF #71CF40
analogous
#5640CF #9E40CF #CF40B8
triadic
#9E40CF #CF9E40 #40CF9E
tetradic
#9E40CF #CF5640 #71CF40 #40B8CF
square
#9E40CF #CF5640 #71CF40 #40B8CF
split-complementary
#9E40CF #B8CF40 #40CF56
monochromatic
#581E77 #7D2AA8 #9E40CF #B771DB #D0A2E8

Accessibility & contrast

On white

5.14
#9E40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#9E40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E40CF
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E40CF#FFFFFF#000000##FFFFFF
##9E40CF1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#2E6FCC
Tritanopia (blue-blind)
#985E83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9e40cf;
/* rgb */ color: rgb(158, 64, 207);
/* oklch */ color: oklch(56.3% 0.216 311.5);
Tailwind
colors: {
  custom: {
    50: '#bf7cde',
    500: '#9e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #9e40cf;
$custom-light: #bf7cde;
$custom-dark: #000000;
JSON
{
  "hex": "#9e40cf",
  "rgb": {
    "r": 158,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 279.441,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56346,
    "c": 0.21583,
    "h": 311.5
  },
  "luminance": 0.15441
}

Semantic roles & 50–950 ramp

primary
#9E40CF
secondary
#ACD497
accent
#E3457B
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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