#9E28AB#9E28AB

#9E28AB is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.211 H 323.5°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9E28AB
RGBrgb(158, 40, 171)
HSLhsl(294, 62%, 41%)
HSVhsv(294, 77%, 67%)
CMYKcmyk(7.6%, 76.6%, 0%, 32.9%)
CIE-LABlab(40.78, 63.22, -44.88)
CIE-LCHlch(40.78, 77.53, 324.63°)
OKLaboklab(51.73% 0.1697 -0.1253)
OKLCHoklch(51.73% 0.211 323.5)
XYZxyz(22.2094, 11.7283, 39.6142)
Luminance0.1173 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28AB #35AB28
analogous
#5D28AB #9E28AB #AB2877
triadic
#9E28AB #AB9E28 #28AB9E
tetradic
#9E28AB #AB5D28 #35AB28 #2877AB
square
#9E28AB #AB5D28 #35AB28 #2877AB
split-complementary
#9E28AB #77AB28 #28AB5D
monochromatic
#421148 #701C79 #9E28AB #C33ED2 #D370DE

Accessibility & contrast

On white

6.28
#9E28AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9E28AB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28AB#FFFFFF#000000##FFFFFF
##9E28AB1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#4065A8
Tritanopia (blue-blind)
#A14169
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9e28ab;
/* rgb */ color: rgb(158, 40, 171);
/* oklch */ color: oklch(51.7% 0.211 323.5);
Tailwind
colors: {
  custom: {
    50: '#bf70c5',
    500: '#9e28ab',
    950: '#000000',
  },
}
SCSS
$custom: #9e28ab;
$custom-light: #bf70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28ab",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 294.046,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.51731,
    "c": 0.21092,
    "h": 323.5
  },
  "luminance": 0.11727
}

Semantic roles & 50–950 ramp

primary
#9E28AB
secondary
#73C46A
accent
#E54353
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9E28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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