#9E317D#9E317D

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

Color values

HEX#9E317D
RGBrgb(158, 49, 125)
HSLhsl(318, 53%, 41%)
HSVhsv(318, 69%, 62%)
CMYKcmyk(0%, 69%, 20.9%, 38%)
CIE-LABlab(39.49, 52.65, -18.98)
CIE-LCHlch(39.49, 55.97, 340.18°)
OKLaboklab(50.02% 0.1577 -0.0509)
OKLCHoklch(50.02% 0.166 342.1)
XYZxyz(18.9011, 10.9482, 20.5159)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E317D #319E52
analogous
#88319E #9E317D #9E3146
triadic
#9E317D #7D9E31 #317D9E
tetradic
#9E317D #9E8831 #319E52 #31469E
square
#9E317D #9E8831 #319E52 #31469E
split-complementary
#9E317D #469E31 #319E88
monochromatic
#411433 #6F2358 #9E317D #C6469F #D475B7

Accessibility & contrast

On white

6.58
#9E317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9E317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9E317D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E317D#FFFFFF#000000##FFFFFF
##9E317D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A527F
Deuteranopia (green-blind)
#5B647A
Tritanopia (blue-blind)
#A83252
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9e317d;
/* rgb */ color: rgb(158, 49, 125);
/* oklch */ color: oklch(50.0% 0.166 342.1);
Tailwind
colors: {
  custom: {
    50: '#be72a2',
    500: '#9e317d',
    950: '#000000',
  },
}
SCSS
$custom: #9e317d;
$custom-light: #be72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e317d",
  "rgb": {
    "r": 158,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 318.165,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.50023,
    "c": 0.16569,
    "h": 342.1
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#9E317D
secondary
#6EBC86
accent
#DC774C
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9E317D

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

Preview Lab → · Contrast checker → · Palette generator →

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