#9D39B1#9D39B1

#9D39B1 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.5% C 0.196 H 320.5°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#9D39B1
RGBrgb(157, 57, 177)
HSLhsl(290, 51%, 46%)
HSVhsv(290, 68%, 69%)
CMYKcmyk(11.3%, 67.8%, 0%, 30.6%)
CIE-LABlab(43.17, 57.91, -44.63)
CIE-LCHlch(43.17, 73.11, 322.38°)
OKLaboklab(53.52% 0.1515 -0.1247)
OKLCHoklch(53.52% 0.196 320.5)
XYZxyz(23.3026, 13.2698, 42.9203)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D39B1 #4DB139
analogous
#6139B1 #9D39B1 #B13989
triadic
#9D39B1 #B19D39 #39B19D
tetradic
#9D39B1 #B16139 #4DB139 #3989B1
square
#9D39B1 #B16139 #4DB139 #3989B1
split-complementary
#9D39B1 #89B139 #39B161
monochromatic
#4B1B54 #742A83 #9D39B1 #B85DCB #CC8BDA

Accessibility & contrast

On white

5.75
#9D39B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#9D39B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D39B1
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D39B1#FFFFFF#000000##FFFFFF
##9D39B11.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5FB5
Deuteranopia (green-blind)
#456AAE
Tritanopia (blue-blind)
#9E4E70
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d39b1;
/* rgb */ color: rgb(157, 57, 177);
/* oklch */ color: oklch(53.5% 0.196 320.5);
Tailwind
colors: {
  custom: {
    50: '#bd77c9',
    500: '#9d39b1',
    950: '#000000',
  },
}
SCSS
$custom: #9d39b1;
$custom-light: #bd77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d39b1",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 290,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5352,
    "c": 0.19621,
    "h": 320.5
  },
  "luminance": 0.13269
}

Semantic roles & 50–950 ramp

primary
#9D39B1
secondary
#8DC482
accent
#DB4D65
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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