#9E28A4#9E28A4

#9E28A4 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.3% C 0.205 H 325.9°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9E28A4
RGBrgb(158, 40, 164)
HSLhsl(297, 61%, 40%)
HSVhsv(297, 76%, 64%)
CMYKcmyk(3.7%, 75.6%, 0%, 35.7%)
CIE-LABlab(40.36, 62.01, -41.37)
CIE-LCHlch(40.36, 74.54, 326.29°)
OKLaboklab(51.3% 0.1701 -0.1151)
OKLCHoklch(51.3% 0.205 325.9)
XYZxyz(21.5597, 11.4685, 36.1928)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28A4 #2EA428
analogous
#6028A4 #9E28A4 #A4286C
triadic
#9E28A4 #A49E28 #28A49E
tetradic
#9E28A4 #A46028 #2EA428 #286CA4
square
#9E28A4 #A46028 #2EA428 #286CA4
split-complementary
#9E28A4 #6CA428 #28A460
monochromatic
#3F1042 #6F1C73 #9E28A4 #C83ACF #D66BDB

Accessibility & contrast

On white

6.38
#9E28A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9E28A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28A4
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28A4#FFFFFF#000000##FFFFFF
##9E28A41.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#4564A1
Tritanopia (blue-blind)
#A23E65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e28a4;
/* rgb */ color: rgb(158, 40, 164);
/* oklch */ color: oklch(51.3% 0.205 325.9);
Tailwind
colors: {
  custom: {
    50: '#be6fbf',
    500: '#9e28a4',
    950: '#000000',
  },
}
SCSS
$custom: #9e28a4;
$custom-light: #be6fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28a4",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 297.097,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.51295,
    "c": 0.20534,
    "h": 325.9
  },
  "luminance": 0.11467
}

Semantic roles & 50–950 ramp

primary
#9E28A4
secondary
#6BC166
accent
#E4444C
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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