#9E30B7#9E30B7

#9E30B7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.2% C 0.213 H 319.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9E30B7
RGBrgb(158, 48, 183)
HSLhsl(289, 58%, 45%)
HSVhsv(289, 74%, 72%)
CMYKcmyk(13.7%, 73.8%, 0%, 28.2%)
CIE-LABlab(42.47, 62.72, -49.28)
CIE-LCHlch(42.47, 79.77, 321.84°)
OKLaboklab(53.17% 0.1615 -0.1383)
OKLCHoklch(53.17% 0.213 319.4)
XYZxyz(23.7036, 12.8031, 46.0132)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E30B7 #49B730
analogous
#5A30B7 #9E30B7 #B7308C
triadic
#9E30B7 #B79E30 #30B79E
tetradic
#9E30B7 #B75A30 #49B730 #308CB7
square
#9E30B7 #B75A30 #49B730 #308CB7
split-complementary
#9E30B7 #8CB730 #30B75A
monochromatic
#4A1756 #742387 #9E30B7 #BA52D2 #CE83DE

Accessibility & contrast

On white

5.90
#9E30B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#9E30B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E30B7
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E30B7#FFFFFF#000000##FFFFFF
##9E30B71.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#3B68B4
Tritanopia (blue-blind)
#9E4B71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #9e30b7;
/* rgb */ color: rgb(158, 48, 183);
/* oklch */ color: oklch(53.2% 0.213 319.4);
Tailwind
colors: {
  custom: {
    50: '#bf74cd',
    500: '#9e30b7',
    950: '#000000',
  },
}
SCSS
$custom: #9e30b7;
$custom-light: #bf74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9e30b7",
  "rgb": {
    "r": 158,
    "g": 48,
    "b": 183
  },
  "hsl": {
    "h": 288.889,
    "s": 58.442,
    "l": 45.294
  },
  "oklch": {
    "l": 0.53167,
    "c": 0.21258,
    "h": 319.4
  },
  "luminance": 0.12802
}

Semantic roles & 50–950 ramp

primary
#9E30B7
secondary
#89C87B
accent
#E24663
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #9E30B7

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

Preview Lab → · Contrast checker → · Palette generator →

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