#9D30A5#9D30A5

#9D30A5 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.9% C 0.197 H 325.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9D30A5
RGBrgb(157, 48, 165)
HSLhsl(296, 55%, 42%)
HSVhsv(296, 71%, 65%)
CMYKcmyk(4.8%, 70.9%, 0%, 35.3%)
CIE-LABlab(41.22, 59.22, -40.62)
CIE-LCHlch(41.22, 71.81, 325.56°)
OKLaboklab(51.89% 0.1613 -0.113)
OKLCHoklch(51.89% 0.197 325)
XYZxyz(21.7526, 12.0000, 36.7605)
Luminance0.1200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D30A5 #38A530
analogous
#6230A5 #9D30A5 #A53073
triadic
#9D30A5 #A59D30 #30A59D
tetradic
#9D30A5 #A56230 #38A530 #3073A5
square
#9D30A5 #A56230 #38A530 #3073A5
split-complementary
#9D30A5 #73A530 #30A562
monochromatic
#431446 #702276 #9D30A5 #C148CA #D178D8

Accessibility & contrast

On white

6.18
#9D30A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D30A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D30A5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D30A5#FFFFFF#000000##FFFFFF
##9D30A51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#4766A2
Tritanopia (blue-blind)
#A04367
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d30a5;
/* rgb */ color: rgb(157, 48, 165);
/* oklch */ color: oklch(51.9% 0.197 325.0);
Tailwind
colors: {
  custom: {
    50: '#bd73c0',
    500: '#9d30a5',
    950: '#000000',
  },
}
SCSS
$custom: #9d30a5;
$custom-light: #bd73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d30a5",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 295.897,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51894,
    "c": 0.1969,
    "h": 325
  },
  "luminance": 0.11999
}

Semantic roles & 50–950 ramp

primary
#9D30A5
secondary
#76C071
accent
#DE4A54
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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