#9D4ECC#9D4ECC

#9D4ECC is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.7% C 0.194 H 310.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9D4ECC
RGBrgb(157, 78, 204)
HSLhsl(278, 55%, 55%)
HSVhsv(278, 62%, 80%)
CMYKcmyk(23%, 61.8%, 0%, 20%)
CIE-LABlab(48.23, 53.95, -52.26)
CIE-LCHlch(48.23, 75.11, 315.91°)
OKLaboklab(57.7% 0.1263 -0.1472)
OKLCHoklch(57.7% 0.194 310.6)
XYZxyz(27.5260, 16.9771, 58.9419)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D4ECC #7DCC4E
analogous
#5E4ECC #9D4ECC #CC4EBC
triadic
#9D4ECC #CC9D4E #4ECC9D
tetradic
#9D4ECC #CC5E4E #7DCC4E #4EBCCC
square
#9D4ECC #CC5E4E #7DCC4E #4EBCCC
split-complementary
#9D4ECC #BCCC4E #4ECC5E
monochromatic
#5B247C #7E31AB #9D4ECC #B77EDA #D2ADE7

Accessibility & contrast

On white

4.78
#9D4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9D4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D4ECC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D4ECC#FFFFFF#000000##FFFFFF
##9D4ECC1.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#4074C9
Tritanopia (blue-blind)
#976686
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d4ecc;
/* rgb */ color: rgb(157, 78, 204);
/* oklch */ color: oklch(57.7% 0.194 310.6);
Tailwind
colors: {
  custom: {
    50: '#bd84dc',
    500: '#9d4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #9d4ecc;
$custom-light: #bd84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d4ecc",
  "rgb": {
    "r": 157,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 277.619,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.57696,
    "c": 0.19394,
    "h": 310.6
  },
  "luminance": 0.16977
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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