#9D3AD9#9D3AD9

#9D3AD9 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.3% C 0.232 H 309.1°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9D3AD9
RGBrgb(157, 58, 217)
HSLhsl(277, 68%, 54%)
HSVhsv(277, 73%, 85%)
CMYKcmyk(27.6%, 73.3%, 0%, 14.9%)
CIE-LABlab(45.91, 65.59, -63.45)
CIE-LCHlch(45.91, 91.25, 315.95°)
OKLaboklab(56.31% 0.1464 -0.1799)
OKLCHoklch(56.31% 0.232 309.1)
XYZxyz(27.9395, 15.2045, 67.0951)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3AD9 #76D93A
analogous
#4D3AD9 #9D3AD9 #D93AC6
triadic
#9D3AD9 #D99D3A #3AD99D
tetradic
#9D3AD9 #D94D3A #76D93A #3AC6D9
square
#9D3AD9 #D94D3A #76D93A #3AC6D9
split-complementary
#9D3AD9 #C6D93A #3AD94D
monochromatic
#591980 #7D23B3 #9D3AD9 #B76DE3 #D0A1ED

Accessibility & contrast

On white

5.20
#9D3AD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#9D3AD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3AD9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3AD9#FFFFFF#000000##FFFFFF
##9D3AD91.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#076ED6
Tritanopia (blue-blind)
#945F87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d3ad9;
/* rgb */ color: rgb(157, 58, 217);
/* oklch */ color: oklch(56.3% 0.232 309.1);
Tailwind
colors: {
  custom: {
    50: '#bf79e6',
    500: '#9d3ad9',
    950: '#000000',
  },
}
SCSS
$custom: #9d3ad9;
$custom-light: #bf79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3ad9",
  "rgb": {
    "r": 157,
    "g": 58,
    "b": 217
  },
  "hsl": {
    "h": 277.358,
    "s": 67.66,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56306,
    "c": 0.23193,
    "h": 309.1
  },
  "luminance": 0.15204
}

Semantic roles & 50–950 ramp

primary
#9D3AD9
secondary
#AFD995
accent
#EB3D7F
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D3AD9

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

Preview Lab → · Contrast checker → · Palette generator →

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