#9D317F#9D317F

#9D317F is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.166 H 340.8°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9D317F
RGBrgb(157, 49, 127)
HSLhsl(317, 52%, 40%)
HSVhsv(317, 69%, 62%)
CMYKcmyk(0%, 68.8%, 19.1%, 38.4%)
CIE-LABlab(39.41, 52.67, -20.36)
CIE-LCHlch(39.41, 56.47, 338.86°)
OKLaboklab(49.96% 0.157 -0.0548)
OKLCHoklch(49.96% 0.166 340.8)
XYZxyz(18.8342, 10.8988, 21.1863)
Luminance0.1090 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D317F #319D4F
analogous
#85319D #9D317F #9D3149
triadic
#9D317F #7F9D31 #317F9D
tetradic
#9D317F #9D8531 #319D4F #31499D
square
#9D317F #9D8531 #319D4F #31499D
split-complementary
#9D317F #499D31 #319D85
monochromatic
#401434 #6E2259 #9D317F #C546A2 #D475B9

Accessibility & contrast

On white

6.61
#9D317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D317F
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D317F#FFFFFF#000000##FFFFFF
##9D317F1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385281
Deuteranopia (green-blind)
#5A637C
Tritanopia (blue-blind)
#A63353
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d317f;
/* rgb */ color: rgb(157, 49, 127);
/* oklch */ color: oklch(50.0% 0.166 340.8);
Tailwind
colors: {
  custom: {
    50: '#bd72a4',
    500: '#9d317f',
    950: '#000000',
  },
}
SCSS
$custom: #9d317f;
$custom-light: #bd72a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d317f",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 316.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49958,
    "c": 0.16632,
    "h": 340.8
  },
  "luminance": 0.10897
}

Semantic roles & 50–950 ramp

primary
#9D317F
secondary
#6EBC84
accent
#DC744C
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #9D317F

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

Preview Lab → · Contrast checker → · Palette generator →

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