#9E27A4#9E27A4

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

Color values

HEX#9E27A4
RGBrgb(158, 39, 164)
HSLhsl(297, 62%, 40%)
HSVhsv(297, 76%, 64%)
CMYKcmyk(3.7%, 76.2%, 0%, 35.7%)
CIE-LABlab(40.25, 62.32, -41.55)
CIE-LCHlch(40.25, 74.90, 326.31°)
OKLaboklab(51.22% 0.1709 -0.1156)
OKLCHoklch(51.22% 0.206 325.9)
XYZxyz(21.5265, 11.4019, 36.1817)
Luminance0.1140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27A4 #2DA427
analogous
#6027A4 #9E27A4 #A4276C
triadic
#9E27A4 #A49E27 #27A49E
tetradic
#9E27A4 #A46027 #2DA427 #276CA4
square
#9E27A4 #A46027 #2DA427 #276CA4
split-complementary
#9E27A4 #6CA427 #27A460
monochromatic
#3F0F41 #6E1B73 #9E27A4 #C938D0 #D66ADC

Accessibility & contrast

On white

6.40
#9E27A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#9E27A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E27A4
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27A4#FFFFFF#000000##FFFFFF
##9E27A41.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A7
Deuteranopia (green-blind)
#4464A1
Tritanopia (blue-blind)
#A23D64
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e27a4;
/* rgb */ color: rgb(158, 39, 164);
/* oklch */ color: oklch(51.2% 0.206 325.9);
Tailwind
colors: {
  custom: {
    50: '#be6fbf',
    500: '#9e27a4',
    950: '#000000',
  },
}
SCSS
$custom: #9e27a4;
$custom-light: #be6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27a4",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 164
  },
  "hsl": {
    "h": 297.12,
    "s": 61.576,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51217,
    "c": 0.20634,
    "h": 325.9
  },
  "luminance": 0.114
}

Semantic roles & 50–950 ramp

primary
#9E27A4
secondary
#69C265
accent
#E5434B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E27A4

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

Preview Lab → · Contrast checker → · Palette generator →

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