#9D39B2#9D39B2

#9D39B2 is a mid, vivid purple. Relative luminance 0.133; OKLCH L 53.6% C 0.197 H 320.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9D39B2
RGBrgb(157, 57, 178)
HSLhsl(290, 51%, 46%)
HSVhsv(290, 68%, 70%)
CMYKcmyk(11.8%, 68%, 0%, 30.2%)
CIE-LABlab(43.23, 58.10, -45.13)
CIE-LCHlch(43.23, 73.57, 322.16°)
OKLaboklab(53.58% 0.1514 -0.1262)
OKLCHoklch(53.58% 0.197 320.2)
XYZxyz(23.4027, 13.3099, 43.4472)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D39B2 #4EB239
analogous
#6039B2 #9D39B2 #B2398A
triadic
#9D39B2 #B29D39 #39B29D
tetradic
#9D39B2 #B26039 #4EB239 #398AB2
square
#9D39B2 #B26039 #4EB239 #398AB2
split-complementary
#9D39B2 #8AB239 #39B260
monochromatic
#4B1B55 #742A84 #9D39B2 #B85DCB #CC8BDA

Accessibility & contrast

On white

5.73
#9D39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#9D39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D39B2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D39B2#FFFFFF#000000##FFFFFF
##9D39B21.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5FB6
Deuteranopia (green-blind)
#446AAF
Tritanopia (blue-blind)
#9E4F71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9d39b2;
/* rgb */ color: rgb(157, 57, 178);
/* oklch */ color: oklch(53.6% 0.197 320.2);
Tailwind
colors: {
  custom: {
    50: '#bd77c9',
    500: '#9d39b2',
    950: '#000000',
  },
}
SCSS
$custom: #9d39b2;
$custom-light: #bd77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d39b2",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 289.587,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53582,
    "c": 0.19711,
    "h": 320.2
  },
  "luminance": 0.13309
}

Semantic roles & 50–950 ramp

primary
#9D39B2
secondary
#8EC482
accent
#DB4D66
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9D39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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