#9E4ECC#9E4ECC

#9E4ECC is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.8% C 0.194 H 311.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9E4ECC
RGBrgb(158, 78, 204)
HSLhsl(278, 55%, 55%)
HSVhsv(278, 62%, 80%)
CMYKcmyk(22.5%, 61.8%, 0%, 20%)
CIE-LABlab(48.36, 54.18, -52.04)
CIE-LCHlch(48.36, 75.13, 316.15°)
OKLaboklab(57.82% 0.1276 -0.1465)
OKLCHoklch(57.82% 0.194 311)
XYZxyz(27.7220, 17.0781, 58.9511)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E4ECC #7CCC4E
analogous
#5F4ECC #9E4ECC #CC4EBB
triadic
#9E4ECC #CC9E4E #4ECC9E
tetradic
#9E4ECC #CC5F4E #7CCC4E #4EBBCC
square
#9E4ECC #CC5F4E #7CCC4E #4EBBCC
split-complementary
#9E4ECC #BBCC4E #4ECC5F
monochromatic
#5C247C #7F31AB #9E4ECC #B87EDA #D2ADE7

Accessibility & contrast

On white

4.76
#9E4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#9E4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E4ECC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E4ECC#FFFFFF#000000##FFFFFF
##9E4ECC1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#176FD0
Deuteranopia (green-blind)
#4174C9
Tritanopia (blue-blind)
#986686
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e4ecc;
/* rgb */ color: rgb(158, 78, 204);
/* oklch */ color: oklch(57.8% 0.194 311.0);
Tailwind
colors: {
  custom: {
    50: '#be84dc',
    500: '#9e4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #9e4ecc;
$custom-light: #be84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9e4ecc",
  "rgb": {
    "r": 158,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 278.095,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57815,
    "c": 0.19427,
    "h": 311
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#9E4ECC
secondary
#B4D5A1
accent
#DF4980
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9E4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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