#9D4EC6#9D4EC6

#9D4EC6 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 57.3% C 0.188 H 312.3°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9D4EC6
RGBrgb(157, 78, 198)
HSLhsl(280, 51%, 54%)
HSVhsv(280, 61%, 78%)
CMYKcmyk(20.7%, 60.6%, 0%, 22.4%)
CIE-LABlab(47.87, 52.64, -49.37)
CIE-LCHlch(47.87, 72.17, 316.83°)
OKLaboklab(57.32% 0.1264 -0.1387)
OKLCHoklch(57.32% 0.188 312.3)
XYZxyz(26.8202, 16.6948, 55.2247)
Luminance0.1669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D4EC6 #77C64E
analogous
#614EC6 #9D4EC6 #C64EB3
triadic
#9D4EC6 #C69D4E #4EC69D
tetradic
#9D4EC6 #C6614E #77C64E #4EB3C6
square
#9D4EC6 #C6614E #77C64E #4EB3C6
split-complementary
#9D4EC6 #B3C64E #4EC661
monochromatic
#592574 #7D34A2 #9D4EC6 #B77CD5 #D0ABE4

Accessibility & contrast

On white

4.84
#9D4EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#9D4EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D4EC6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D4EC6#FFFFFF#000000##FFFFFF
##9D4EC61.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226ECA
Deuteranopia (green-blind)
#4673C3
Tritanopia (blue-blind)
#996483
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9d4ec6;
/* rgb */ color: rgb(157, 78, 198);
/* oklch */ color: oklch(57.3% 0.188 312.3);
Tailwind
colors: {
  custom: {
    50: '#bd84d8',
    500: '#9d4ec6',
    950: '#000000',
  },
}
SCSS
$custom: #9d4ec6;
$custom-light: #bd84d8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d4ec6",
  "rgb": {
    "r": 157,
    "g": 78,
    "b": 198
  },
  "hsl": {
    "h": 279.5,
    "s": 51.282,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57321,
    "c": 0.18767,
    "h": 312.3
  },
  "luminance": 0.16694
}

Semantic roles & 50–950 ramp

primary
#9D4EC6
secondary
#B0D19E
accent
#DB4D7D
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#120B14
muted
#817C83

Preview Lab

Preview with #9D4EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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