#9E27BA#9E27BA

#9E27BA is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.224 H 318.9°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9E27BA
RGBrgb(158, 39, 186)
HSLhsl(289, 65%, 44%)
HSVhsv(289, 79%, 73%)
CMYKcmyk(15.1%, 79%, 0%, 27.1%)
CIE-LABlab(41.64, 66.22, -52.38)
CIE-LCHlch(41.64, 84.43, 321.66°)
OKLaboklab(52.64% 0.1688 -0.1473)
OKLCHoklch(52.64% 0.224 318.9)
XYZxyz(23.6878, 12.2665, 47.5648)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27BA #43BA27
analogous
#5427BA #9E27BA #BA278D
triadic
#9E27BA #BA9E27 #27BA9E
tetradic
#9E27BA #BA5427 #43BA27 #278DBA
square
#9E27BA #BA5427 #43BA27 #278DBA
split-complementary
#9E27BA #8DBA27 #27BA54
monochromatic
#481255 #731C87 #9E27BA #BC46D8 #CF79E3

Accessibility & contrast

On white

6.08
#9E27BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9E27BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E27BA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27BA#FFFFFF#000000##FFFFFF
##9E27BA1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#3166B7
Tritanopia (blue-blind)
#9E4871
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9e27ba;
/* rgb */ color: rgb(158, 39, 186);
/* oklch */ color: oklch(52.6% 0.224 318.9);
Tailwind
colors: {
  custom: {
    50: '#bf70cf',
    500: '#9e27ba',
    950: '#000000',
  },
}
SCSS
$custom: #9e27ba;
$custom-light: #bf70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27ba",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 288.571,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.52643,
    "c": 0.22404,
    "h": 318.9
  },
  "luminance": 0.12265
}

Semantic roles & 50–950 ramp

primary
#9E27BA
secondary
#83CB72
accent
#E84060
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9E27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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