#9E27A2#9E27A2

#9E27A2 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.1% C 0.205 H 326.6°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9E27A2
RGBrgb(158, 39, 162)
HSLhsl(298, 61%, 39%)
HSVhsv(298, 76%, 64%)
CMYKcmyk(2.5%, 75.9%, 0%, 36.5%)
CIE-LABlab(40.13, 61.98, -40.54)
CIE-LCHlch(40.13, 74.06, 326.82°)
OKLaboklab(51.1% 0.171 -0.1126)
OKLCHoklch(51.1% 0.205 326.6)
XYZxyz(21.3473, 11.3303, 35.2380)
Luminance0.1133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E27A2 #2BA227
analogous
#6127A2 #9E27A2 #A22769
triadic
#9E27A2 #A29E27 #27A29E
tetradic
#9E27A2 #A26127 #2BA227 #2769A2
square
#9E27A2 #A26127 #2BA227 #2769A2
split-complementary
#9E27A2 #69A227 #27A261
monochromatic
#3E0F3F #6E1B71 #9E27A2 #CA37CF #D769DB

Accessibility & contrast

On white

6.43
#9E27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E27A2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E27A2#FFFFFF#000000##FFFFFF
##9E27A21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#46649F
Tritanopia (blue-blind)
#A23C63
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e27a2;
/* rgb */ color: rgb(158, 39, 162);
/* oklch */ color: oklch(51.1% 0.205 326.6);
Tailwind
colors: {
  custom: {
    50: '#be6fbe',
    500: '#9e27a2',
    950: '#000000',
  },
}
SCSS
$custom: #9e27a2;
$custom-light: #be6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9e27a2",
  "rgb": {
    "r": 158,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 298.049,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.51095,
    "c": 0.20477,
    "h": 326.6
  },
  "luminance": 0.11329
}

Semantic roles & 50–950 ramp

primary
#9E27A2
secondary
#67C164
accent
#E44349
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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