#9E30A3#9E30A3

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

Color values

HEX#9E30A3
RGBrgb(158, 48, 163)
HSLhsl(297, 55%, 41%)
HSVhsv(297, 71%, 64%)
CMYKcmyk(3.1%, 70.6%, 0%, 36.1%)
CIE-LABlab(41.26, 59.09, -39.34)
CIE-LCHlch(41.26, 70.99, 326.35°)
OKLaboklab(51.92% 0.1624 -0.1092)
OKLCHoklch(51.92% 0.196 326.1)
XYZxyz(21.7679, 12.0288, 35.8185)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E30A3 #35A330
analogous
#6530A3 #9E30A3 #A3306F
triadic
#9E30A3 #A39E30 #30A39E
tetradic
#9E30A3 #A36530 #35A330 #306FA3
square
#9E30A3 #A36530 #35A330 #306FA3
split-complementary
#9E30A3 #6FA330 #30A365
monochromatic
#421444 #702274 #9E30A3 #C347C9 #D377D7

Accessibility & contrast

On white

6.17
#9E30A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9E30A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E30A3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E30A3#FFFFFF#000000##FFFFFF
##9E30A31.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A6
Deuteranopia (green-blind)
#4966A0
Tritanopia (blue-blind)
#A24266
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e30a3;
/* rgb */ color: rgb(158, 48, 163);
/* oklch */ color: oklch(51.9% 0.196 326.1);
Tailwind
colors: {
  custom: {
    50: '#be73bf',
    500: '#9e30a3',
    950: '#000000',
  },
}
SCSS
$custom: #9e30a3;
$custom-light: #be73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e30a3",
  "rgb": {
    "r": 158,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 297.391,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51922,
    "c": 0.19573,
    "h": 326.1
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

primary
#9E30A3
secondary
#73BF70
accent
#DE4A50
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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