#9D3172#9D3172

#9D3172 is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.4% C 0.158 H 347.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9D3172
RGBrgb(157, 49, 114)
HSLhsl(324, 52%, 40%)
HSVhsv(324, 69%, 62%)
CMYKcmyk(0%, 68.8%, 27.4%, 38.4%)
CIE-LABlab(38.87, 50.86, -13.12)
CIE-LCHlch(38.87, 52.52, 345.54°)
OKLaboklab(49.38% 0.1542 -0.0346)
OKLCHoklch(49.38% 0.158 347.4)
XYZxyz(18.0410, 10.5815, 17.0087)
Luminance0.1058 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3172 #319D5C
analogous
#92319D #9D3172 #9D313C
triadic
#9D3172 #729D31 #31729D
tetradic
#9D3172 #9D9231 #319D5C #313C9D
square
#9D3172 #9D9231 #319D5C #313C9D
split-complementary
#9D3172 #3C9D31 #319D92
monochromatic
#40142E #6E2250 #9D3172 #C54693 #D475AE

Accessibility & contrast

On white

6.74
#9D3172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#9D3172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3172
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3172#FFFFFF#000000##FFFFFF
##9D31721.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5074
Deuteranopia (green-blind)
#5E626F
Tritanopia (blue-blind)
#A82E4D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d3172;
/* rgb */ color: rgb(157, 49, 114);
/* oklch */ color: oklch(49.4% 0.158 347.4);
Tailwind
colors: {
  custom: {
    50: '#be719a',
    500: '#9d3172',
    950: '#000000',
  },
}
SCSS
$custom: #9d3172;
$custom-light: #be719a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3172",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 323.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49383,
    "c": 0.15806,
    "h": 347.4
  },
  "luminance": 0.1058
}

Semantic roles & 50–950 ramp

primary
#9D3172
secondary
#6EBC8D
accent
#DC854C
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9D3172

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

Preview Lab → · Contrast checker → · Palette generator →

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