#9D28B1#9D28B1

#9D28B1 is a mid, highly saturated purple. Relative luminance 0.119; OKLCH L 52.0% C 0.215 H 321.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9D28B1
RGBrgb(157, 40, 177)
HSLhsl(291, 63%, 43%)
HSVhsv(291, 77%, 69%)
CMYKcmyk(11.3%, 77.4%, 0%, 30.6%)
CIE-LABlab(40.99, 64.09, -48.11)
CIE-LCHlch(40.99, 80.13, 323.10°)
OKLaboklab(51.97% 0.168 -0.1348)
OKLCHoklch(51.97% 0.215 321.3)
XYZxyz(22.5983, 11.8613, 42.6856)
Luminance0.1186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28B1 #3CB128
analogous
#5928B1 #9D28B1 #B12880
triadic
#9D28B1 #B19D28 #28B19D
tetradic
#9D28B1 #B15928 #3CB128 #2880B1
square
#9D28B1 #B15928 #3CB128 #2880B1
split-complementary
#9D28B1 #80B128 #28B159
monochromatic
#44114D #711D7F #9D28B1 #BF42D4 #D074E0

Accessibility & contrast

On white

6.23
#9D28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9D28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28B1
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28B1#FFFFFF#000000##FFFFFF
##9D28B11.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#3A65AE
Tritanopia (blue-blind)
#9E446C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d28b1;
/* rgb */ color: rgb(157, 40, 177);
/* oklch */ color: oklch(52.0% 0.215 321.3);
Tailwind
colors: {
  custom: {
    50: '#be70c9',
    500: '#9d28b1',
    950: '#000000',
  },
}
SCSS
$custom: #9d28b1;
$custom-light: #be70c9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28b1",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 291.241,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51971,
    "c": 0.21537,
    "h": 321.3
  },
  "luminance": 0.1186
}

Semantic roles & 50–950 ramp

primary
#9D28B1
secondary
#7BC76E
accent
#E6425A
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130813
muted
#827B82

Preview Lab

Preview with #9D28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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