#9D28BC#9D28BC

#9D28BC is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.7% C 0.224 H 317.9°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9D28BC
RGBrgb(157, 40, 188)
HSLhsl(287, 65%, 45%)
HSVhsv(287, 79%, 74%)
CMYKcmyk(16.5%, 78.7%, 0%, 26.3%)
CIE-LABlab(41.72, 66.10, -53.43)
CIE-LCHlch(41.72, 85.00, 321.05°)
OKLaboklab(52.71% 0.1666 -0.1504)
OKLCHoklch(52.71% 0.224 317.9)
XYZxyz(23.7392, 12.3176, 48.6943)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28BC #47BC28
analogous
#5328BC #9D28BC #BC2891
triadic
#9D28BC #BC9D28 #28BC9D
tetradic
#9D28BC #BC5328 #47BC28 #2891BC
square
#9D28BC #BC5328 #47BC28 #2891BC
split-complementary
#9D28BC #91BC28 #28BC53
monochromatic
#491357 #731D8A #9D28BC #BA49D8 #CD7BE3

Accessibility & contrast

On white

6.06
#9D28BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9D28BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28BC
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28BC#FFFFFF#000000##FFFFFF
##9D28BC1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#2E66B9
Tritanopia (blue-blind)
#9C4972
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d28bc;
/* rgb */ color: rgb(157, 40, 188);
/* oklch */ color: oklch(52.7% 0.224 317.9);
Tailwind
colors: {
  custom: {
    50: '#be70d1',
    500: '#9d28bc',
    950: '#000000',
  },
}
SCSS
$custom: #9d28bc;
$custom-light: #be70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28bc",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 287.432,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5271,
    "c": 0.22442,
    "h": 317.9
  },
  "luminance": 0.12317
}

Semantic roles & 50–950 ramp

primary
#9D28BC
secondary
#87CB75
accent
#E84063
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9D28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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