#9E27AD#9E27AD

#9E27AD is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.8% C 0.213 H 322.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9E27AD
RGBrgb(158, 39, 173)
HSLhsl(293, 63%, 42%)
HSVhsv(293, 77%, 68%)
CMYKcmyk(8.7%, 77.5%, 0%, 32.2%)
CIE-LABlab(40.80, 63.88, -46.04)
CIE-LCHlch(40.80, 78.74, 324.22°)
OKLaboklab(51.78% 0.1703 -0.1287)
OKLCHoklch(51.78% 0.213 322.9)
XYZxyz(22.3682, 11.7386, 40.6147)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27AD #36AD27
analogous
#5B27AD #9E27AD #AD2779
triadic
#9E27AD #AD9E27 #27AD9E
tetradic
#9E27AD #AD5B27 #36AD27 #2779AD
square
#9E27AD #AD5B27 #36AD27 #2779AD
split-complementary
#9E27AD #79AD27 #27AD5B
monochromatic
#431049 #701C7B #9E27AD #C33ED3 #D270DF

Accessibility & contrast

On white

6.27
#9E27AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9E27AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E27AD
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27AD#FFFFFF#000000##FFFFFF
##9E27AD1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#3E65AA
Tritanopia (blue-blind)
#A04269
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e27ad;
/* rgb */ color: rgb(158, 39, 173);
/* oklch */ color: oklch(51.8% 0.213 322.9);
Tailwind
colors: {
  custom: {
    50: '#bf6fc6',
    500: '#9e27ad',
    950: '#000000',
  },
}
SCSS
$custom: #9e27ad;
$custom-light: #bf6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27ad",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 293.284,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51782,
    "c": 0.21349,
    "h": 322.9
  },
  "luminance": 0.11737
}

Semantic roles & 50–950 ramp

primary
#9E27AD
secondary
#74C66A
accent
#E64254
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9E27AD

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

Preview Lab → · Contrast checker → · Palette generator →

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