#9D317E#9D317E

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

Color values

HEX#9D317E
RGBrgb(157, 49, 126)
HSLhsl(317, 52%, 40%)
HSVhsv(317, 69%, 62%)
CMYKcmyk(0%, 68.8%, 19.7%, 38.4%)
CIE-LABlab(39.37, 52.52, -19.81)
CIE-LCHlch(39.37, 56.13, 339.33°)
OKLaboklab(49.91% 0.1569 -0.0532)
OKLCHoklch(49.91% 0.166 341.3)
XYZxyz(18.7694, 10.8729, 20.8448)
Luminance0.1087 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D317E #319D50
analogous
#86319D #9D317E #9D3148
triadic
#9D317E #7E9D31 #317E9D
tetradic
#9D317E #9D8631 #319D50 #31489D
square
#9D317E #9D8631 #319D50 #31489D
split-complementary
#9D317E #489D31 #319D86
monochromatic
#401433 #6E2259 #9D317E #C546A1 #D475B8

Accessibility & contrast

On white

6.62
#9D317E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D317E
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D317E#FFFFFF#000000##FFFFFF
##9D317E1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d317e;
/* rgb */ color: rgb(157, 49, 126);
/* oklch */ color: oklch(49.9% 0.166 341.3);
Tailwind
colors: {
  custom: {
    50: '#bd72a3',
    500: '#9d317e',
    950: '#000000',
  },
}
SCSS
$custom: #9d317e;
$custom-light: #bd72a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d317e",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 317.222,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49912,
    "c": 0.16564,
    "h": 341.3
  },
  "luminance": 0.10871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D317E

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

Preview Lab → · Contrast checker → · Palette generator →

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