#9D317D#9D317D

#9D317D is a mid, vivid pink. Relative luminance 0.108; OKLCH L 49.9% C 0.165 H 341.7°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#9D317D
RGBrgb(157, 49, 125)
HSLhsl(318, 52%, 40%)
HSVhsv(318, 69%, 62%)
CMYKcmyk(0%, 68.8%, 20.4%, 38.4%)
CIE-LABlab(39.32, 52.38, -19.26)
CIE-LCHlch(39.32, 55.81, 339.81°)
OKLaboklab(49.86% 0.1567 -0.0517)
OKLCHoklch(49.86% 0.165 341.7)
XYZxyz(18.7052, 10.8472, 20.5067)
Luminance0.1085 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D317D #319D51
analogous
#87319D #9D317D #9D3147
triadic
#9D317D #7D9D31 #317D9D
tetradic
#9D317D #9D8731 #319D51 #31479D
square
#9D317D #9D8731 #319D51 #31479D
split-complementary
#9D317D #479D31 #319D87
monochromatic
#401433 #6E2258 #9D317D #C546A0 #D475B8

Accessibility & contrast

On white

6.63
#9D317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9D317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D317D
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D317D#FFFFFF#000000##FFFFFF
##9D317D1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A517F
Deuteranopia (green-blind)
#5B637A
Tritanopia (blue-blind)
#A73252
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d317d;
/* rgb */ color: rgb(157, 49, 125);
/* oklch */ color: oklch(49.9% 0.165 341.7);
Tailwind
colors: {
  custom: {
    50: '#bd72a2',
    500: '#9d317d',
    950: '#000000',
  },
}
SCSS
$custom: #9d317d;
$custom-light: #bd72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d317d",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 317.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49865,
    "c": 0.16497,
    "h": 341.7
  },
  "luminance": 0.10845
}

Semantic roles & 50–950 ramp

primary
#9D317D
secondary
#6EBC85
accent
#DC774C
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D317D

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

Preview Lab → · Contrast checker → · Palette generator →

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