#9D2DB9#9D2DB9

#9D2DB9 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.217 H 318.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9D2DB9
RGBrgb(157, 45, 185)
HSLhsl(288, 61%, 45%)
HSVhsv(288, 76%, 73%)
CMYKcmyk(15.1%, 75.7%, 0%, 27.5%)
CIE-LABlab(42.08, 63.93, -51.09)
CIE-LCHlch(42.08, 81.84, 321.37°)
OKLaboklab(52.9% 0.1628 -0.1436)
OKLCHoklch(52.9% 0.217 318.6)
XYZxyz(23.5988, 12.5488, 47.0686)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2DB9 #49B92D
analogous
#572DB9 #9D2DB9 #B92D8F
triadic
#9D2DB9 #B99D2D #2DB99D
tetradic
#9D2DB9 #B9572D #49B92D #2D8FB9
square
#9D2DB9 #B9572D #49B92D #2D8FB9
split-complementary
#9D2DB9 #8FB92D #2DB957
monochromatic
#491557 #732188 #9D2DB9 #BA4FD4 #CD80E0

Accessibility & contrast

On white

5.98
#9D2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9D2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2DB9
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2DB9#FFFFFF#000000##FFFFFF
##9D2DB91.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#3567B6
Tritanopia (blue-blind)
#9C4B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9d2db9;
/* rgb */ color: rgb(157, 45, 185);
/* oklch */ color: oklch(52.9% 0.217 318.6);
Tailwind
colors: {
  custom: {
    50: '#be72cf',
    500: '#9d2db9',
    950: '#000000',
  },
}
SCSS
$custom: #9d2db9;
$custom-light: #be72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2db9",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 288,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52901,
    "c": 0.21706,
    "h": 318.6
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#9D2DB9
secondary
#89C979
accent
#E44464
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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