#9E27A3#9E27A3

#9E27A3 is a mid, highly saturated purple. Relative luminance 0.114; OKLCH L 51.2% C 0.206 H 326.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9E27A3
RGBrgb(158, 39, 163)
HSLhsl(298, 61%, 40%)
HSVhsv(298, 76%, 64%)
CMYKcmyk(3.1%, 76.1%, 0%, 36.1%)
CIE-LABlab(40.19, 62.15, -41.04)
CIE-LCHlch(40.19, 74.48, 326.56°)
OKLaboklab(51.16% 0.171 -0.1141)
OKLCHoklch(51.16% 0.206 326.3)
XYZxyz(21.4365, 11.3660, 35.7080)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27A3 #2CA327
analogous
#6027A3 #9E27A3 #A3276A
triadic
#9E27A3 #A39E27 #27A39E
tetradic
#9E27A3 #A36027 #2CA327 #276AA3
square
#9E27A3 #A36027 #2CA327 #276AA3
split-complementary
#9E27A3 #6AA327 #27A360
monochromatic
#3E0F40 #6E1B72 #9E27A3 #C938CF #D769DB

Accessibility & contrast

On white

6.42
#9E27A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9E27A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E27A3
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27A3#FFFFFF#000000##FFFFFF
##9E27A31.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A6
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#A23D64
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e27a3;
/* rgb */ color: rgb(158, 39, 163);
/* oklch */ color: oklch(51.2% 0.206 326.3);
Tailwind
colors: {
  custom: {
    50: '#be6fbf',
    500: '#9e27a3',
    950: '#000000',
  },
}
SCSS
$custom: #9e27a3;
$custom-light: #be6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27a3",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 163
  },
  "hsl": {
    "h": 297.581,
    "s": 61.386,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51156,
    "c": 0.20556,
    "h": 326.3
  },
  "luminance": 0.11364
}

Semantic roles & 50–950 ramp

primary
#9E27A3
secondary
#68C164
accent
#E4434A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E27A3

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

Preview Lab → · Contrast checker → · Palette generator →

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