#9E28A5#9E28A5

#9E28A5 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.206 H 325.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9E28A5
RGBrgb(158, 40, 165)
HSLhsl(297, 61%, 40%)
HSVhsv(297, 76%, 65%)
CMYKcmyk(4.2%, 75.8%, 0%, 35.3%)
CIE-LABlab(40.42, 62.18, -41.88)
CIE-LCHlch(40.42, 74.97, 326.04°)
OKLaboklab(51.36% 0.17 -0.1166)
OKLCHoklch(51.36% 0.206 325.6)
XYZxyz(21.6504, 11.5047, 36.6703)
Luminance0.1150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28A5 #2FA528
analogous
#5F28A5 #9E28A5 #A5286D
triadic
#9E28A5 #A59E28 #28A59E
tetradic
#9E28A5 #A55F28 #2FA528 #286DA5
square
#9E28A5 #A55F28 #2FA528 #286DA5
split-complementary
#9E28A5 #6DA528 #28A55F
monochromatic
#401042 #6F1C74 #9E28A5 #C73BCF #D56CDB

Accessibility & contrast

On white

6.36
#9E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9E28A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28A5
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28A5#FFFFFF#000000##FFFFFF
##9E28A51.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4464A2
Tritanopia (blue-blind)
#A23E65
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9e28a5;
/* rgb */ color: rgb(158, 40, 165);
/* oklch */ color: oklch(51.4% 0.206 325.6);
Tailwind
colors: {
  custom: {
    50: '#be6fc0',
    500: '#9e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #9e28a5;
$custom-light: #be6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28a5",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 296.64,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.51356,
    "c": 0.20613,
    "h": 325.6
  },
  "luminance": 0.11503
}

Semantic roles & 50–950 ramp

primary
#9E28A5
secondary
#6CC267
accent
#E4444D
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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