#9D30C9#9D30C9

#9D30C9 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.3% C 0.228 H 313.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9D30C9
RGBrgb(157, 48, 201)
HSLhsl(283, 61%, 49%)
HSVhsv(283, 76%, 79%)
CMYKcmyk(21.9%, 76.1%, 0%, 21.2%)
CIE-LABlab(43.51, 66.00, -58.13)
CIE-LCHlch(43.51, 87.94, 318.63°)
OKLaboklab(54.25% 0.1579 -0.1642)
OKLCHoklch(54.25% 0.228 313.9)
XYZxyz(25.5024, 13.4999, 56.5094)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D30C9 #5CC930
analogous
#5130C9 #9D30C9 #C930A9
triadic
#9D30C9 #C99D30 #30C99D
tetradic
#9D30C9 #C95130 #5CC930 #30A9C9
square
#9D30C9 #C95130 #5CC930 #30A9C9
split-complementary
#9D30C9 #A9C930 #30C951
monochromatic
#501866 #762498 #9D30C9 #B55ED8 #CC8FE4

Accessibility & contrast

On white

5.68
#9D30C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9D30C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D30C9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D30C9#FFFFFF#000000##FFFFFF
##9D30C91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#2269C6
Tritanopia (blue-blind)
#99537B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9d30c9;
/* rgb */ color: rgb(157, 48, 201);
/* oklch */ color: oklch(54.3% 0.228 313.9);
Tailwind
colors: {
  custom: {
    50: '#bf74da',
    500: '#9d30c9',
    950: '#000000',
  },
}
SCSS
$custom: #9d30c9;
$custom-light: #bf74da;
$custom-dark: #000000;
JSON
{
  "hex": "#9d30c9",
  "rgb": {
    "r": 157,
    "g": 48,
    "b": 201
  },
  "hsl": {
    "h": 282.745,
    "s": 61.446,
    "l": 48.824
  },
  "oklch": {
    "l": 0.54254,
    "c": 0.22785,
    "h": 313.9
  },
  "luminance": 0.13499
}

Semantic roles & 50–950 ramp

primary
#9D30C9
secondary
#9BCF86
accent
#E54372
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D30C9

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

Preview Lab → · Contrast checker → · Palette generator →

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