#9E30A5#9E30A5

#9E30A5 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.0% C 0.197 H 325.4°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9E30A5
RGBrgb(158, 48, 165)
HSLhsl(296, 55%, 42%)
HSVhsv(296, 71%, 65%)
CMYKcmyk(4.2%, 70.9%, 0%, 35.3%)
CIE-LABlab(41.38, 59.44, -40.35)
CIE-LCHlch(41.38, 71.85, 325.83°)
OKLaboklab(52.04% 0.1624 -0.1122)
OKLCHoklch(52.04% 0.197 325.4)
XYZxyz(21.9485, 12.1010, 36.7697)
Luminance0.1210 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E30A5 #37A530
analogous
#6430A5 #9E30A5 #A53072
triadic
#9E30A5 #A59E30 #30A59E
tetradic
#9E30A5 #A56430 #37A530 #3072A5
square
#9E30A5 #A56430 #37A530 #3072A5
split-complementary
#9E30A5 #72A530 #30A564
monochromatic
#431446 #712276 #9E30A5 #C248CA #D278D8

Accessibility & contrast

On white

6.14
#9E30A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9E30A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E30A5
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E30A5#FFFFFF#000000##FFFFFF
##9E30A51.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A8
Deuteranopia (green-blind)
#4866A2
Tritanopia (blue-blind)
#A24367
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e30a5;
/* rgb */ color: rgb(158, 48, 165);
/* oklch */ color: oklch(52.0% 0.197 325.4);
Tailwind
colors: {
  custom: {
    50: '#be73c0',
    500: '#9e30a5',
    950: '#000000',
  },
}
SCSS
$custom: #9e30a5;
$custom-light: #be73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e30a5",
  "rgb": {
    "r": 158,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 296.41,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.19739,
    "h": 325.4
  },
  "luminance": 0.121
}

Semantic roles & 50–950 ramp

primary
#9E30A5
secondary
#76C071
accent
#DE4A52
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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