#9D30A2#9D30A2

#9D30A2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.194 H 326.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9D30A2
RGBrgb(157, 48, 162)
HSLhsl(297, 54%, 41%)
HSVhsv(297, 70%, 64%)
CMYKcmyk(3.1%, 70.4%, 0%, 36.5%)
CIE-LABlab(41.04, 58.69, -39.09)
CIE-LCHlch(41.04, 70.52, 326.33°)
OKLaboklab(51.72% 0.1613 -0.1085)
OKLCHoklch(51.72% 0.194 326.1)
XYZxyz(21.4827, 11.8921, 35.3393)
Luminance0.1189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D30A2 #35A230
analogous
#6430A2 #9D30A2 #A2306E
triadic
#9D30A2 #A29D30 #30A29D
tetradic
#9D30A2 #A26430 #35A230 #306EA2
square
#9D30A2 #A26430 #35A230 #306EA2
split-complementary
#9D30A2 #6EA230 #30A264
monochromatic
#411444 #6F2273 #9D30A2 #C347C8 #D276D6

Accessibility & contrast

On white

6.22
#9D30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#9D30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D30A2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D30A2#FFFFFF#000000##FFFFFF
##9D30A21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1758A5
Deuteranopia (green-blind)
#49659F
Tritanopia (blue-blind)
#A14266
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d30a2;
/* rgb */ color: rgb(157, 48, 162);
/* oklch */ color: oklch(51.7% 0.194 326.1);
Tailwind
colors: {
  custom: {
    50: '#bd73be',
    500: '#9d30a2',
    950: '#000000',
  },
}
SCSS
$custom: #9d30a2;
$custom-light: #bd73be;
$custom-dark: #000000;
JSON
{
  "hex": "#9d30a2",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 297.368,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51715,
    "c": 0.19442,
    "h": 326.1
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#9D30A2
secondary
#73BE6F
accent
#DE4A51
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#120912
muted
#817B81

Preview Lab

Preview with #9D30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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