#9D2A8D#9D2A8D

#9D2A8D is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.185 H 334.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9D2A8D
RGBrgb(157, 42, 141)
HSLhsl(308, 58%, 39%)
HSVhsv(308, 73%, 62%)
CMYKcmyk(0%, 73.2%, 10.2%, 38.4%)
CIE-LABlab(39.15, 57.37, -29.37)
CIE-LCHlch(39.15, 64.45, 332.89°)
OKLaboklab(49.99% 0.1666 -0.0804)
OKLCHoklch(49.99% 0.185 334.3)
XYZxyz(19.5405, 10.7488, 26.2397)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2A8D #2A9D3A
analogous
#742A9D #9D2A8D #9D2A54
triadic
#9D2A8D #8D9D2A #2A8D9D
tetradic
#9D2A8D #9D742A #2A9D3A #2A549D
square
#9D2A8D #9D742A #2A9D3A #2A549D
split-complementary
#9D2A8D #549D2A #2A9D74
monochromatic
#3C1036 #6D1D62 #9D2A8D #CA3AB6 #D76AC8

Accessibility & contrast

On white

6.67
#9D2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9D2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2A8D
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2A8D#FFFFFF#000000##FFFFFF
##9D2A8D1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285190
Deuteranopia (green-blind)
#51628A
Tritanopia (blue-blind)
#A53458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2a8d;
/* rgb */ color: rgb(157, 42, 141);
/* oklch */ color: oklch(50.0% 0.185 334.3);
Tailwind
colors: {
  custom: {
    50: '#bd6fae',
    500: '#9d2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9d2a8d;
$custom-light: #bd6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2a8d",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 308.348,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4999,
    "c": 0.185,
    "h": 334.3
  },
  "luminance": 0.10747
}

Semantic roles & 50–950 ramp

primary
#9D2A8D
secondary
#65BE71
accent
#E15C47
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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