#9D39AB#9D39AB

#9D39AB is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.191 H 322.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9D39AB
RGBrgb(157, 57, 171)
HSLhsl(293, 50%, 45%)
HSVhsv(293, 67%, 67%)
CMYKcmyk(8.2%, 66.7%, 0%, 32.9%)
CIE-LABlab(42.82, 56.77, -41.64)
CIE-LCHlch(42.82, 70.41, 323.74°)
OKLaboklab(53.16% 0.1515 -0.116)
OKLCHoklch(53.16% 0.191 322.6)
XYZxyz(22.7177, 13.0359, 39.8397)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D39AB #47AB39
analogous
#6439AB #9D39AB #AB3980
triadic
#9D39AB #AB9D39 #39AB9D
tetradic
#9D39AB #AB6439 #47AB39 #3980AB
square
#9D39AB #AB6439 #47AB39 #3980AB
split-complementary
#9D39AB #80AB39 #39AB64
monochromatic
#491A4F #732A7D #9D39AB #BA59C8 #CD87D7

Accessibility & contrast

On white

5.82
#9D39AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#9D39AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D39AB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D39AB#FFFFFF#000000##FFFFFF
##9D39AB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAE
Deuteranopia (green-blind)
#4969A8
Tritanopia (blue-blind)
#9F4C6D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d39ab;
/* rgb */ color: rgb(157, 57, 171);
/* oklch */ color: oklch(53.2% 0.191 322.6);
Tailwind
colors: {
  custom: {
    50: '#bd77c4',
    500: '#9d39ab',
    950: '#000000',
  },
}
SCSS
$custom: #9d39ab;
$custom-light: #bd77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d39ab",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 171
  },
  "hsl": {
    "h": 292.632,
    "s": 50,
    "l": 44.706
  },
  "oklch": {
    "l": 0.53156,
    "c": 0.19084,
    "h": 322.6
  },
  "luminance": 0.13035
}

Semantic roles & 50–950 ramp

primary
#9D39AB
secondary
#87C17F
accent
#DA4E5F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D39AB

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

Preview Lab → · Contrast checker → · Palette generator →

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