#9D39B4#9D39B4

#9D39B4 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 53.7% C 0.199 H 319.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#9D39B4
RGBrgb(157, 57, 180)
HSLhsl(289, 52%, 46%)
HSVhsv(289, 68%, 71%)
CMYKcmyk(12.8%, 68.3%, 0%, 29.4%)
CIE-LABlab(43.35, 58.48, -46.11)
CIE-LCHlch(43.35, 74.48, 321.74°)
OKLaboklab(53.71% 0.1514 -0.1291)
OKLCHoklch(53.71% 0.199 319.5)
XYZxyz(23.6049, 13.3908, 44.5125)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D39B4 #50B439
analogous
#5F39B4 #9D39B4 #B4398E
triadic
#9D39B4 #B49D39 #39B49D
tetradic
#9D39B4 #B45F39 #50B439 #398EB4
square
#9D39B4 #B45F39 #50B439 #398EB4
split-complementary
#9D39B4 #8EB439 #39B45F
monochromatic
#4C1C57 #742A86 #9D39B4 #B85ECC #CC8DDB

Accessibility & contrast

On white

5.71
#9D39B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#9D39B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D39B4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D39B4#FFFFFF#000000##FFFFFF
##9D39B41.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0360B8
Deuteranopia (green-blind)
#426AB1
Tritanopia (blue-blind)
#9D4F72
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d39b4;
/* rgb */ color: rgb(157, 57, 180);
/* oklch */ color: oklch(53.7% 0.199 319.5);
Tailwind
colors: {
  custom: {
    50: '#bd78cb',
    500: '#9d39b4',
    950: '#000000',
  },
}
SCSS
$custom: #9d39b4;
$custom-light: #bd78cb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d39b4",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 288.78,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.53707,
    "c": 0.19892,
    "h": 319.5
  },
  "luminance": 0.1339
}

Semantic roles & 50–950 ramp

primary
#9D39B4
secondary
#90C583
accent
#DB4C67
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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