#9C39B2#9C39B2

#9C39B2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 53.4% C 0.197 H 319.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9C39B2
RGBrgb(156, 57, 178)
HSLhsl(289, 51%, 46%)
HSVhsv(289, 68%, 70%)
CMYKcmyk(12.4%, 68%, 0%, 30.2%)
CIE-LABlab(43.08, 57.87, -45.37)
CIE-LCHlch(43.08, 73.54, 321.90°)
OKLaboklab(53.45% 0.1502 -0.1269)
OKLCHoklch(53.45% 0.197 319.8)
XYZxyz(23.2083, 13.2096, 43.4381)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C39B2 #4FB239
analogous
#5F39B2 #9C39B2 #B2398B
triadic
#9C39B2 #B29C39 #39B29C
tetradic
#9C39B2 #B25F39 #4FB239 #398BB2
square
#9C39B2 #B25F39 #4FB239 #398BB2
split-complementary
#9C39B2 #8BB239 #39B25F
monochromatic
#4B1B55 #732A84 #9C39B2 #B75DCB #CC8BDA

Accessibility & contrast

On white

5.77
#9C39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#9C39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C39B2
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C39B2#FFFFFF#000000##FFFFFF
##9C39B21.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085FB6
Deuteranopia (green-blind)
#4369AF
Tritanopia (blue-blind)
#9C4F71
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #9c39b2;
/* rgb */ color: rgb(156, 57, 178);
/* oklch */ color: oklch(53.4% 0.197 319.8);
Tailwind
colors: {
  custom: {
    50: '#bd77ca',
    500: '#9c39b2',
    950: '#000000',
  },
}
SCSS
$custom: #9c39b2;
$custom-light: #bd77ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9c39b2",
  "rgb": {
    "r": 156,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 289.091,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53445,
    "c": 0.19667,
    "h": 319.8
  },
  "luminance": 0.13209
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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