#9E30A4#9E30A4

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

Color values

HEX#9E30A4
RGBrgb(158, 48, 164)
HSLhsl(297, 55%, 42%)
HSVhsv(297, 71%, 64%)
CMYKcmyk(3.7%, 70.7%, 0%, 35.7%)
CIE-LABlab(41.32, 59.27, -39.84)
CIE-LCHlch(41.32, 71.42, 326.09°)
OKLaboklab(51.98% 0.1624 -0.1107)
OKLCHoklch(51.98% 0.197 325.7)
XYZxyz(21.8579, 12.0648, 36.2922)
Luminance0.1206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E30A4 #36A430
analogous
#6430A4 #9E30A4 #A43070
triadic
#9E30A4 #A49E30 #30A49E
tetradic
#9E30A4 #A46430 #36A430 #3070A4
square
#9E30A4 #A46430 #36A430 #3070A4
split-complementary
#9E30A4 #70A430 #30A464
monochromatic
#431445 #702275 #9E30A4 #C348C9 #D277D7

Accessibility & contrast

On white

6.15
#9E30A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E30A4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E30A4#FFFFFF#000000##FFFFFF
##9E30A41.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1459A7
Deuteranopia (green-blind)
#4966A1
Tritanopia (blue-blind)
#A24367
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e30a4;
/* rgb */ color: rgb(158, 48, 164);
/* oklch */ color: oklch(52.0% 0.197 325.7);
Tailwind
colors: {
  custom: {
    50: '#be73bf',
    500: '#9e30a4',
    950: '#000000',
  },
}
SCSS
$custom: #9e30a4;
$custom-light: #be73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e30a4",
  "rgb": {
    "r": 158,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 296.897,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51981,
    "c": 0.19655,
    "h": 325.7
  },
  "luminance": 0.12063
}

Semantic roles & 50–950 ramp

primary
#9E30A4
secondary
#74BF70
accent
#DE4A51
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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