#9D28A8#9D28A8

#9D28A8 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.4% C 0.208 H 324.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9D28A8
RGBrgb(157, 40, 168)
HSLhsl(295, 62%, 41%)
HSVhsv(295, 76%, 66%)
CMYKcmyk(6.5%, 76.2%, 0%, 34.1%)
CIE-LABlab(40.43, 62.49, -43.66)
CIE-LCHlch(40.43, 76.23, 325.06°)
OKLaboklab(51.39% 0.1687 -0.1218)
OKLCHoklch(51.39% 0.208 324.2)
XYZxyz(21.7307, 11.5142, 38.1161)
Luminance0.1151 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28A8 #33A828
analogous
#5D28A8 #9D28A8 #A82873
triadic
#9D28A8 #A89D28 #28A89D
tetradic
#9D28A8 #A85D28 #33A828 #2873A8
square
#9D28A8 #A85D28 #33A828 #2873A8
split-complementary
#9D28A8 #73A828 #28A85D
monochromatic
#411045 #6F1C77 #9D28A8 #C43DD1 #D36EDC

Accessibility & contrast

On white

6.36
#9D28A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9D28A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28A8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28A8#FFFFFF#000000##FFFFFF
##9D28A81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AB
Deuteranopia (green-blind)
#4164A5
Tritanopia (blue-blind)
#A04067
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d28a8;
/* rgb */ color: rgb(157, 40, 168);
/* oklch */ color: oklch(51.4% 0.208 324.2);
Tailwind
colors: {
  custom: {
    50: '#be6fc2',
    500: '#9d28a8',
    950: '#000000',
  },
}
SCSS
$custom: #9d28a8;
$custom-light: #be6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28a8",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 294.844,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51393,
    "c": 0.20808,
    "h": 324.2
  },
  "luminance": 0.11513
}

Semantic roles & 50–950 ramp

primary
#9D28A8
secondary
#70C369
accent
#E54351
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81

Preview Lab

Preview with #9D28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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