#9D3ED9#9D3ED9

#9D3ED9 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.7% C 0.228 H 308.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#9D3ED9
RGBrgb(157, 62, 217)
HSLhsl(277, 67%, 55%)
HSVhsv(277, 71%, 85%)
CMYKcmyk(27.6%, 71.4%, 0%, 14.9%)
CIE-LABlab(46.48, 63.99, -62.53)
CIE-LCHlch(46.48, 89.47, 315.66°)
OKLaboklab(56.71% 0.1426 -0.1773)
OKLCHoklch(56.71% 0.228 308.8)
XYZxyz(28.1491, 15.6236, 67.1650)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3ED9 #7AD93E
analogous
#4F3ED9 #9D3ED9 #D93EC8
triadic
#9D3ED9 #D99D3E #3ED99D
tetradic
#9D3ED9 #D94F3E #7AD93E #3EC8D9
square
#9D3ED9 #D94F3E #7AD93E #3EC8D9
split-complementary
#9D3ED9 #C8D93E #3ED94F
monochromatic
#5A1A83 #7D24B6 #9D3ED9 #B771E3 #D1A4ED

Accessibility & contrast

On white

5.09
#9D3ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#9D3ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3ED9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3ED9#FFFFFF#000000##FFFFFF
##9D3ED91.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADD
Deuteranopia (green-blind)
#146FD6
Tritanopia (blue-blind)
#946188
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #9d3ed9;
/* rgb */ color: rgb(157, 62, 217);
/* oklch */ color: oklch(56.7% 0.228 308.8);
Tailwind
colors: {
  custom: {
    50: '#bf7be6',
    500: '#9d3ed9',
    950: '#000000',
  },
}
SCSS
$custom: #9d3ed9;
$custom-light: #bf7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3ed9",
  "rgb": {
    "r": 157,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 276.774,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56705,
    "c": 0.2275,
    "h": 308.8
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#9D3ED9
secondary
#B2DA99
accent
#EA3E80
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9D3ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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