#9D4ED8#9D4ED8

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

Color values

HEX#9D4ED8
RGBrgb(157, 78, 216)
HSLhsl(274, 64%, 58%)
HSVhsv(274, 64%, 85%)
CMYKcmyk(27.3%, 63.9%, 0%, 15.3%)
CIE-LABlab(48.98, 56.62, -57.93)
CIE-LCHlch(48.98, 81.00, 314.34°)
OKLaboklab(58.47% 0.1258 -0.1638)
OKLCHoklch(58.47% 0.207 307.5)
XYZxyz(29.0211, 17.5751, 66.8159)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D4ED8 #89D84E
analogous
#584ED8 #9D4ED8 #D84ECE
triadic
#9D4ED8 #D89D4E #4ED89D
tetradic
#9D4ED8 #D8584E #89D84E #4ECED8
square
#9D4ED8 #D8584E #89D84E #4ECED8
split-complementary
#9D4ED8 #CED84E #4ED858
monochromatic
#5E1F8D #7F2ABF #9D4ED8 #B980E3 #D5B2EE

Accessibility & contrast

On white

4.65
#9D4ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9D4ED8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D4ED8
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D4ED8#FFFFFF#000000##FFFFFF
##9D4ED81.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#3375D5
Tritanopia (blue-blind)
#946B8C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9d4ed8;
/* rgb */ color: rgb(157, 78, 216);
/* oklch */ color: oklch(58.5% 0.207 307.5);
Tailwind
colors: {
  custom: {
    50: '#be84e5',
    500: '#9d4ed8',
    950: '#000000',
  },
}
SCSS
$custom: #9d4ed8;
$custom-light: #be84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d4ed8",
  "rgb": {
    "r": 157,
    "g": 78,
    "b": 216
  },
  "hsl": {
    "h": 274.348,
    "s": 63.889,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58473,
    "c": 0.20654,
    "h": 307.5
  },
  "luminance": 0.17575
}

Semantic roles & 50–950 ramp

primary
#9D4ED8
secondary
#BDDDA5
accent
#E74188
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9D4ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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