#9D28CA#9D28CA

#9D28CA is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.7% C 0.236 H 314.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9D28CA
RGBrgb(157, 40, 202)
HSLhsl(283, 67%, 47%)
HSVhsv(283, 80%, 79%)
CMYKcmyk(22.3%, 80.2%, 0%, 20.8%)
CIE-LABlab(42.69, 68.76, -60.03)
CIE-LCHlch(42.69, 91.28, 318.88°)
OKLaboklab(53.7% 0.1641 -0.1698)
OKLCHoklch(53.7% 0.236 314)
XYZxyz(25.3222, 12.9508, 57.0315)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28CA #55CA28
analogous
#4C28CA #9D28CA #CA28A6
triadic
#9D28CA #CA9D28 #28CA9D
tetradic
#9D28CA #CA4C28 #55CA28 #28A6CA
square
#9D28CA #CA4C28 #55CA28 #28A6CA
split-complementary
#9D28CA #A6CA28 #28CA4C
monochromatic
#4E1464 #751E97 #9D28CA #B652DD #CC85E7

Accessibility & contrast

On white

5.85
#9D28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#9D28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28CA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28CA#FFFFFF#000000##FFFFFF
##9D28CA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#1567C7
Tritanopia (blue-blind)
#98507A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #9d28ca;
/* rgb */ color: rgb(157, 40, 202);
/* oklch */ color: oklch(53.7% 0.236 314.0);
Tailwind
colors: {
  custom: {
    50: '#bf71db',
    500: '#9d28ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d28ca;
$custom-light: #bf71db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28ca",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 283.333,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.53701,
    "c": 0.23611,
    "h": 314
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#9D28CA
secondary
#95D07E
accent
#EA3E6E
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83

Preview Lab

Preview with #9D28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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