#9D3A8A#9D3A8A

#9D3A8A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.5% C 0.162 H 336.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9D3A8A
RGBrgb(157, 58, 138)
HSLhsl(312, 46%, 42%)
HSVhsv(312, 63%, 62%)
CMYKcmyk(0%, 63.1%, 12.1%, 38.4%)
CIE-LABlab(41.27, 50.59, -24.24)
CIE-LCHlch(41.27, 56.10, 334.40°)
OKLaboklab(51.48% 0.1477 -0.0658)
OKLCHoklch(51.48% 0.162 336)
XYZxyz(20.0053, 12.0308, 25.3084)
Luminance0.1203 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3A8A #3A9D4D
analogous
#7F3A9D #9D3A8A #9D3A59
triadic
#9D3A8A #8A9D3A #3A8A9D
tetradic
#9D3A8A #9D7F3A #3A9D4D #3A599D
square
#9D3A8A #9D7F3A #3A9D4D #3A599D
split-complementary
#9D3A8A #599D3A #3A9D7F
monochromatic
#44193B #702963 #9D3A8A #C054AB #D081C1

Accessibility & contrast

On white

6.17
#9D3A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9D3A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3A8A
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3A8A#FFFFFF#000000##FFFFFF
##9D3A8A1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588C
Deuteranopia (green-blind)
#5A6787
Tritanopia (blue-blind)
#A53F5C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d3a8a;
/* rgb */ color: rgb(157, 58, 138);
/* oklch */ color: oklch(51.5% 0.162 336.0);
Tailwind
colors: {
  custom: {
    50: '#bd77ac',
    500: '#9d3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d3a8a;
$custom-light: #bd77ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3a8a",
  "rgb": {
    "r": 157,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 311.515,
    "s": 46.047,
    "l": 42.157
  },
  "oklch": {
    "l": 0.51475,
    "c": 0.1617,
    "h": 336
  },
  "luminance": 0.12029
}

Semantic roles & 50–950 ramp

primary
#9D3A8A
secondary
#79BA85
accent
#D66B52
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9D3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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