#9D3ED4#9D3ED4

#9D3ED4 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.4% C 0.223 H 310.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9D3ED4
RGBrgb(157, 62, 212)
HSLhsl(278, 64%, 54%)
HSVhsv(278, 71%, 83%)
CMYKcmyk(25.9%, 70.8%, 0%, 16.9%)
CIE-LABlab(46.13, 62.92, -60.23)
CIE-LCHlch(46.13, 87.10, 316.25°)
OKLaboklab(56.35% 0.1433 -0.1705)
OKLCHoklch(56.35% 0.223 310)
XYZxyz(27.5086, 15.3674, 63.7917)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3ED4 #75D43E
analogous
#523ED4 #9D3ED4 #D43EC0
triadic
#9D3ED4 #D49D3E #3ED49D
tetradic
#9D3ED4 #D4523E #75D43E #3EC0D4
square
#9D3ED4 #D4523E #75D43E #3EC0D4
split-complementary
#9D3ED4 #C0D43E #3ED452
monochromatic
#591C7C #7C27AE #9D3ED4 #B670DF #D0A2EA

Accessibility & contrast

On white

5.16
#9D3ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#9D3ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3ED4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3ED4#FFFFFF#000000##FFFFFF
##9D3ED41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#216FD1
Tritanopia (blue-blind)
#955F85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9d3ed4;
/* rgb */ color: rgb(157, 62, 212);
/* oklch */ color: oklch(56.4% 0.223 310.0);
Tailwind
colors: {
  custom: {
    50: '#bf7be2',
    500: '#9d3ed4',
    950: '#000000',
  },
}
SCSS
$custom: #9d3ed4;
$custom-light: #bf7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3ed4",
  "rgb": {
    "r": 157,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 278,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56353,
    "c": 0.22271,
    "h": 310
  },
  "luminance": 0.15367
}

Semantic roles & 50–950 ramp

primary
#9D3ED4
secondary
#AED797
accent
#E7417E
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9D3ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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