#9D28BA#9D28BA

#9D28BA is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.6% C 0.223 H 318.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D28BA
RGBrgb(157, 40, 186)
HSLhsl(288, 65%, 44%)
HSVhsv(288, 78%, 73%)
CMYKcmyk(15.6%, 78.5%, 0%, 27.1%)
CIE-LABlab(41.58, 65.73, -52.48)
CIE-LCHlch(41.58, 84.11, 321.40°)
OKLaboklab(52.57% 0.1669 -0.1476)
OKLCHoklch(52.57% 0.223 318.5)
XYZxyz(23.5251, 12.2320, 47.5667)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28BA #45BA28
analogous
#5428BA #9D28BA #BA288E
triadic
#9D28BA #BA9D28 #28BA9D
tetradic
#9D28BA #BA5428 #45BA28 #288EBA
square
#9D28BA #BA5428 #45BA28 #288EBA
split-complementary
#9D28BA #8EBA28 #28BA54
monochromatic
#481255 #721D88 #9D28BA #BB48D8 #CE7AE2

Accessibility & contrast

On white

6.09
#9D28BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9D28BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28BA
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28BA#FFFFFF#000000##FFFFFF
##9D28BA1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#3166B7
Tritanopia (blue-blind)
#9C4971
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d28ba;
/* rgb */ color: rgb(157, 40, 186);
/* oklch */ color: oklch(52.6% 0.223 318.5);
Tailwind
colors: {
  custom: {
    50: '#be70cf',
    500: '#9d28ba',
    950: '#000000',
  },
}
SCSS
$custom: #9d28ba;
$custom-light: #be70cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28ba",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 288.082,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52573,
    "c": 0.22277,
    "h": 318.5
  },
  "luminance": 0.12231
}

Semantic roles & 50–950 ramp

primary
#9D28BA
secondary
#85CA73
accent
#E84061
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130814
muted
#827B82

Preview Lab

Preview with #9D28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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