#9D30B7#9D30B7

#9D30B7 is a mid, highly saturated purple. Relative luminance 0.127; OKLCH L 53.0% C 0.212 H 319.1°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9D30B7
RGBrgb(157, 48, 183)
HSLhsl(288, 58%, 45%)
HSVhsv(288, 74%, 72%)
CMYKcmyk(14.2%, 73.8%, 0%, 28.2%)
CIE-LABlab(42.31, 62.51, -49.54)
CIE-LCHlch(42.31, 79.76, 321.60°)
OKLaboklab(53.03% 0.1603 -0.139)
OKLCHoklch(53.03% 0.212 319.1)
XYZxyz(23.5077, 12.7020, 46.0041)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D30B7 #4AB730
analogous
#5930B7 #9D30B7 #B7308E
triadic
#9D30B7 #B79D30 #30B79D
tetradic
#9D30B7 #B75930 #4AB730 #308EB7
square
#9D30B7 #B75930 #4AB730 #308EB7
split-complementary
#9D30B7 #8EB730 #30B759
monochromatic
#4A1756 #732387 #9D30B7 #B952D2 #CD83DE

Accessibility & contrast

On white

5.93
#9D30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#9D30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D30B7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D30B7#FFFFFF#000000##FFFFFF
##9D30B71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#3967B4
Tritanopia (blue-blind)
#9D4B71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9d30b7;
/* rgb */ color: rgb(157, 48, 183);
/* oklch */ color: oklch(53.0% 0.212 319.1);
Tailwind
colors: {
  custom: {
    50: '#be73cd',
    500: '#9d30b7',
    950: '#000000',
  },
}
SCSS
$custom: #9d30b7;
$custom-light: #be73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9d30b7",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 288.444,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53027,
    "c": 0.21218,
    "h": 319.1
  },
  "luminance": 0.12701
}

Semantic roles & 50–950 ramp

primary
#9D30B7
secondary
#8AC87B
accent
#E24664
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9D30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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