#9D28A2#9D28A2

#9D28A2 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.0% C 0.203 H 326.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9D28A2
RGBrgb(157, 40, 162)
HSLhsl(298, 60%, 40%)
HSVhsv(298, 75%, 64%)
CMYKcmyk(3.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(40.07, 61.45, -40.64)
CIE-LCHlch(40.07, 73.68, 326.53°)
OKLaboklab(51.02% 0.169 -0.113)
OKLCHoklch(51.02% 0.203 326.2)
XYZxyz(21.1846, 11.2958, 35.2399)
Luminance0.1129 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D28A2 #2DA228
analogous
#6028A2 #9D28A2 #A2286A
triadic
#9D28A2 #A29D28 #28A29D
tetradic
#9D28A2 #A26028 #2DA228 #286AA2
square
#9D28A2 #A26028 #2DA228 #286AA2
split-complementary
#9D28A2 #6AA228 #28A260
monochromatic
#3E1040 #6D1C71 #9D28A2 #C839CE #D66ADA

Accessibility & contrast

On white

6.44
#9D28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9D28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D28A2
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D28A2#FFFFFF#000000##FFFFFF
##9D28A21.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#45639F
Tritanopia (blue-blind)
#A13D63
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d28a2;
/* rgb */ color: rgb(157, 40, 162);
/* oklch */ color: oklch(51.0% 0.203 326.2);
Tailwind
colors: {
  custom: {
    50: '#be6fbe',
    500: '#9d28a2',
    950: '#000000',
  },
}
SCSS
$custom: #9d28a2;
$custom-light: #be6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#9d28a2",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 297.541,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.51022,
    "c": 0.2033,
    "h": 326.2
  },
  "luminance": 0.11294
}

Semantic roles & 50–950 ramp

primary
#9D28A2
secondary
#69C165
accent
#E4444B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81

Preview Lab

Preview with #9D28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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