#9E28BC#9E28BC

#9E28BC is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.9% C 0.225 H 318.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9E28BC
RGBrgb(158, 40, 188)
HSLhsl(288, 65%, 45%)
HSVhsv(288, 79%, 74%)
CMYKcmyk(16%, 78.7%, 0%, 26.3%)
CIE-LABlab(41.87, 66.29, -53.17)
CIE-LCHlch(41.87, 84.98, 321.27°)
OKLaboklab(52.85% 0.1678 -0.1496)
OKLCHoklch(52.85% 0.225 318.3)
XYZxyz(23.9352, 12.4187, 48.7035)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E28BC #46BC28
analogous
#5428BC #9E28BC #BC2890
triadic
#9E28BC #BC9E28 #28BC9E
tetradic
#9E28BC #BC5428 #46BC28 #2890BC
square
#9E28BC #BC5428 #46BC28 #2890BC
split-complementary
#9E28BC #90BC28 #28BC54
monochromatic
#491357 #741D8A #9E28BC #BB49D8 #CE7BE3

Accessibility & contrast

On white

6.03
#9E28BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9E28BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E28BC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E28BC#FFFFFF#000000##FFFFFF
##9E28BC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#3066B9
Tritanopia (blue-blind)
#9D4972
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9e28bc;
/* rgb */ color: rgb(158, 40, 188);
/* oklch */ color: oklch(52.9% 0.225 318.3);
Tailwind
colors: {
  custom: {
    50: '#bf70d1',
    500: '#9e28bc',
    950: '#000000',
  },
}
SCSS
$custom: #9e28bc;
$custom-light: #bf70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9e28bc",
  "rgb": {
    "r": 158,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 287.838,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.52852,
    "c": 0.22478,
    "h": 318.3
  },
  "luminance": 0.12418
}

Semantic roles & 50–950 ramp

primary
#9E28BC
secondary
#86CB75
accent
#E84062
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9E28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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