#9E4ECD#9E4ECD

#9E4ECD is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.9% C 0.195 H 310.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9E4ECD
RGBrgb(158, 78, 205)
HSLhsl(278, 56%, 55%)
HSVhsv(278, 62%, 80%)
CMYKcmyk(22.9%, 62%, 0%, 19.6%)
CIE-LABlab(48.42, 54.40, -52.52)
CIE-LCHlch(48.42, 75.62, 316.01°)
OKLaboklab(57.88% 0.1275 -0.1479)
OKLCHoklch(57.88% 0.195 310.8)
XYZxyz(27.8423, 17.1263, 59.5848)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E4ECD #7DCD4E
analogous
#5E4ECD #9E4ECD #CD4EBD
triadic
#9E4ECD #CD9E4E #4ECD9E
tetradic
#9E4ECD #CD5E4E #7DCD4E #4EBDCD
square
#9E4ECD #CD5E4E #7DCD4E #4EBDCD
split-complementary
#9E4ECD #BDCD4E #4ECD5E
monochromatic
#5C237D #7F31AD #9E4ECD #B87EDA #D2ADE8

Accessibility & contrast

On white

4.75
#9E4ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9E4ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E4ECD
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E4ECD#FFFFFF#000000##FFFFFF
##9E4ECD1.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD1
Deuteranopia (green-blind)
#4074CA
Tritanopia (blue-blind)
#986686
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9e4ecd;
/* rgb */ color: rgb(158, 78, 205);
/* oklch */ color: oklch(57.9% 0.195 310.8);
Tailwind
colors: {
  custom: {
    50: '#be84dd',
    500: '#9e4ecd',
    950: '#000000',
  },
}
SCSS
$custom: #9e4ecd;
$custom-light: #be84dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e4ecd",
  "rgb": {
    "r": 158,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 277.795,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57878,
    "c": 0.19532,
    "h": 310.8
  },
  "luminance": 0.17126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E4ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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