#9D30A6#9D30A6

#9D30A6 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 52.0% C 0.198 H 324.6°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9D30A6
RGBrgb(157, 48, 166)
HSLhsl(295, 55%, 42%)
HSVhsv(295, 71%, 65%)
CMYKcmyk(5.4%, 71.1%, 0%, 34.9%)
CIE-LABlab(41.27, 59.40, -41.12)
CIE-LCHlch(41.27, 72.24, 325.31°)
OKLaboklab(51.96% 0.1613 -0.1144)
OKLCHoklch(51.96% 0.198 324.6)
XYZxyz(21.8440, 12.0365, 37.2417)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D30A6 #39A630
analogous
#6230A6 #9D30A6 #A63074
triadic
#9D30A6 #A69D30 #30A69D
tetradic
#9D30A6 #A66230 #39A630 #3074A6
square
#9D30A6 #A66230 #39A630 #3074A6
split-complementary
#9D30A6 #74A630 #30A662
monochromatic
#431547 #702277 #9D30A6 #C049CA #D178D8

Accessibility & contrast

On white

6.16
#9D30A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9D30A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D30A6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D30A6#FFFFFF#000000##FFFFFF
##9D30A61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E59A9
Deuteranopia (green-blind)
#4766A3
Tritanopia (blue-blind)
#A04468
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d30a6;
/* rgb */ color: rgb(157, 48, 166);
/* oklch */ color: oklch(52.0% 0.198 324.6);
Tailwind
colors: {
  custom: {
    50: '#bd73c1',
    500: '#9d30a6',
    950: '#000000',
  },
}
SCSS
$custom: #9d30a6;
$custom-light: #bd73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d30a6",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 295.424,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51955,
    "c": 0.19774,
    "h": 324.6
  },
  "luminance": 0.12035
}

Semantic roles & 50–950 ramp

primary
#9D30A6
secondary
#78C071
accent
#DE4955
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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