#9D4ED9#9D4ED9

#9D4ED9 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.5% C 0.208 H 307.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9D4ED9
RGBrgb(157, 78, 217)
HSLhsl(274, 65%, 58%)
HSVhsv(274, 64%, 85%)
CMYKcmyk(27.6%, 64.1%, 0%, 14.9%)
CIE-LABlab(49.04, 56.84, -58.39)
CIE-LCHlch(49.04, 81.49, 314.23°)
OKLaboklab(58.54% 0.1257 -0.1652)
OKLCHoklch(58.54% 0.208 307.3)
XYZxyz(29.1508, 17.6270, 67.4989)
Luminance0.1763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D4ED9 #8AD94E
analogous
#584ED9 #9D4ED9 #D94ECF
triadic
#9D4ED9 #D99D4E #4ED99D
tetradic
#9D4ED9 #D9584E #8AD94E #4ECFD9
square
#9D4ED9 #D9584E #8AD94E #4ECFD9
split-complementary
#9D4ED9 #CFD94E #4ED958
monochromatic
#5E1F8E #7F29C0 #9D4ED9 #B980E4 #D5B3EF

Accessibility & contrast

On white

4.64
#9D4ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#9D4ED9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D4ED9
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D4ED9#FFFFFF#000000##FFFFFF
##9D4ED91.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#3175D6
Tritanopia (blue-blind)
#936B8D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9d4ed9;
/* rgb */ color: rgb(157, 78, 217);
/* oklch */ color: oklch(58.5% 0.208 307.3);
Tailwind
colors: {
  custom: {
    50: '#be84e5',
    500: '#9d4ed9',
    950: '#000000',
  },
}
SCSS
$custom: #9d4ed9;
$custom-light: #be84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d4ed9",
  "rgb": {
    "r": 157,
    "g": 78,
    "b": 217
  },
  "hsl": {
    "h": 274.101,
    "s": 64.651,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5854,
    "c": 0.20759,
    "h": 307.3
  },
  "luminance": 0.17627
}

Semantic roles & 50–950 ramp

primary
#9D4ED9
secondary
#BEDDA6
accent
#E84088
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D4ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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