#9E30A2#9E30A2

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

Color values

HEX#9E30A2
RGBrgb(158, 48, 162)
HSLhsl(298, 54%, 41%)
HSVhsv(298, 70%, 64%)
CMYKcmyk(2.5%, 70.4%, 0%, 36.5%)
CIE-LABlab(41.21, 58.92, -38.83)
CIE-LCHlch(41.21, 70.56, 326.62°)
OKLaboklab(51.86% 0.1624 -0.1077)
OKLCHoklch(51.86% 0.195 326.4)
XYZxyz(21.6787, 11.9931, 35.3485)
Luminance0.1199 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E30A2 #34A230
analogous
#6530A2 #9E30A2 #A2306D
triadic
#9E30A2 #A29E30 #30A29E
tetradic
#9E30A2 #A26530 #34A230 #306DA2
square
#9E30A2 #A26530 #34A230 #306DA2
split-complementary
#9E30A2 #6DA230 #30A265
monochromatic
#421444 #702273 #9E30A2 #C447C8 #D376D6

Accessibility & contrast

On white

6.18
#9E30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9E30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E30A2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E30A2#FFFFFF#000000##FFFFFF
##9E30A21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1858A5
Deuteranopia (green-blind)
#4A669F
Tritanopia (blue-blind)
#A24266
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e30a2;
/* rgb */ color: rgb(158, 48, 162);
/* oklch */ color: oklch(51.9% 0.195 326.4);
Tailwind
colors: {
  custom: {
    50: '#be73be',
    500: '#9e30a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e30a2;
$custom-light: #be73be;
$custom-dark: #000000;
JSON
{
  "hex": "#9e30a2",
  "rgb": {
    "r": 158,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 297.895,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.51863,
    "c": 0.19491,
    "h": 326.4
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#9E30A2
secondary
#72BE6F
accent
#DE4A4F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #9E30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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