#9D2DAB#9D2DAB

#9D2DAB is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.205 H 323.0°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9D2DAB
RGBrgb(157, 45, 171)
HSLhsl(293, 58%, 42%)
HSVhsv(293, 74%, 67%)
CMYKcmyk(8.2%, 73.7%, 0%, 32.9%)
CIE-LABlab(41.19, 61.36, -44.23)
CIE-LCHlch(41.19, 75.64, 324.22°)
OKLaboklab(51.99% 0.164 -0.1235)
OKLCHoklch(51.99% 0.205 323)
XYZxyz(22.1930, 11.9865, 39.6648)
Luminance0.1198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2DAB #3BAB2D
analogous
#5E2DAB #9D2DAB #AB2D7A
triadic
#9D2DAB #AB9D2D #2DAB9D
tetradic
#9D2DAB #AB5E2D #3BAB2D #2D7AAB
square
#9D2DAB #AB5E2D #3BAB2D #2D7AAB
split-complementary
#9D2DAB #7AAB2D #2DAB5E
monochromatic
#44144A #71207B #9D2DAB #BF47CE #D077DB

Accessibility & contrast

On white

6.18
#9D2DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D2DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2DAB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2DAB#FFFFFF#000000##FFFFFF
##9D2DAB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#4165A8
Tritanopia (blue-blind)
#9F446A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d2dab;
/* rgb */ color: rgb(157, 45, 171);
/* oklch */ color: oklch(52.0% 0.205 323.0);
Tailwind
colors: {
  custom: {
    50: '#be72c4',
    500: '#9d2dab',
    950: '#000000',
  },
}
SCSS
$custom: #9d2dab;
$custom-light: #be72c4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2dab",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 293.333,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51993,
    "c": 0.2053,
    "h": 323
  },
  "luminance": 0.11985
}

Semantic roles & 50–950 ramp

primary
#9D2DAB
secondary
#7AC371
accent
#E24658
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #9D2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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