#9E27B0#9E27B0

#9E27B0 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.216 H 322.0°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9E27B0
RGBrgb(158, 39, 176)
HSLhsl(292, 64%, 42%)
HSVhsv(292, 78%, 69%)
CMYKcmyk(10.2%, 77.8%, 0%, 31%)
CIE-LABlab(40.99, 64.41, -47.52)
CIE-LCHlch(40.99, 80.04, 323.58°)
OKLaboklab(51.98% 0.1701 -0.133)
OKLCHoklch(51.98% 0.216 322)
XYZxyz(22.6617, 11.8560, 42.1607)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27B0 #39B027
analogous
#5A27B0 #9E27B0 #B0277D
triadic
#9E27B0 #B09E27 #27B09E
tetradic
#9E27B0 #B05A27 #39B027 #277DB0
square
#9E27B0 #B05A27 #39B027 #277DB0
split-complementary
#9E27B0 #7DB027 #27B05A
monochromatic
#44114C #711C7E #9E27B0 #C140D5 #D172E0

Accessibility & contrast

On white

6.23
#9E27B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9E27B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E27B0
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27B0#FFFFFF#000000##FFFFFF
##9E27B01.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B4
Deuteranopia (green-blind)
#3B65AD
Tritanopia (blue-blind)
#A0436B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9e27b0;
/* rgb */ color: rgb(158, 39, 176);
/* oklch */ color: oklch(52.0% 0.216 322.0);
Tailwind
colors: {
  custom: {
    50: '#bf6fc8',
    500: '#9e27b0',
    950: '#000000',
  },
}
SCSS
$custom: #9e27b0;
$custom-light: #bf6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27b0",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 176
  },
  "hsl": {
    "h": 292.117,
    "s": 63.721,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51976,
    "c": 0.21591,
    "h": 322
  },
  "luminance": 0.11855
}

Semantic roles & 50–950 ramp

primary
#9E27B0
secondary
#78C76C
accent
#E74157
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9E27B0

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

Preview Lab → · Contrast checker → · Palette generator →

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