#9D3ED2#9D3ED2

#9D3ED2 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.2% C 0.221 H 310.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#9D3ED2
RGBrgb(157, 62, 210)
HSLhsl(279, 62%, 53%)
HSVhsv(279, 70%, 82%)
CMYKcmyk(25.2%, 70.5%, 0%, 17.6%)
CIE-LABlab(46.00, 62.49, -59.30)
CIE-LCHlch(46.00, 86.15, 316.50°)
OKLaboklab(56.21% 0.1436 -0.1678)
OKLCHoklch(56.21% 0.221 310.6)
XYZxyz(27.2579, 15.2671, 62.4712)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3ED2 #73D23E
analogous
#533ED2 #9D3ED2 #D23EBD
triadic
#9D3ED2 #D29D3E #3ED29D
tetradic
#9D3ED2 #D2533E #73D23E #3EBDD2
square
#9D3ED2 #D2533E #73D23E #3EBDD2
split-complementary
#9D3ED2 #BDD23E #3ED253
monochromatic
#581C79 #7C28AB #9D3ED2 #B670DE #CFA1E9

Accessibility & contrast

On white

5.18
#9D3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#9D3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3ED2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3ED2#FFFFFF#000000##FFFFFF
##9D3ED21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D6
Deuteranopia (green-blind)
#256ECF
Tritanopia (blue-blind)
#965F84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d3ed2;
/* rgb */ color: rgb(157, 62, 210);
/* oklch */ color: oklch(56.2% 0.221 310.6);
Tailwind
colors: {
  custom: {
    50: '#be7be1',
    500: '#9d3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #9d3ed2;
$custom-light: #be7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3ed2",
  "rgb": {
    "r": 157,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 278.514,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56213,
    "c": 0.2208,
    "h": 310.6
  },
  "luminance": 0.15266
}

Semantic roles & 50–950 ramp

primary
#9D3ED2
secondary
#ADD696
accent
#E5437D
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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