#9F317D#9F317D

#9F317D is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.2% C 0.166 H 342.5°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#9F317D
RGBrgb(159, 49, 125)
HSLhsl(319, 53%, 41%)
HSVhsv(319, 69%, 62%)
CMYKcmyk(0%, 69.2%, 21.4%, 37.6%)
CIE-LABlab(39.66, 52.92, -18.70)
CIE-LCHlch(39.66, 56.13, 340.54°)
OKLaboklab(50.18% 0.1587 -0.0501)
OKLCHoklch(50.18% 0.166 342.5)
XYZxyz(19.0987, 11.0501, 20.5251)
Luminance0.1105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F317D #319F53
analogous
#8A319F #9F317D #9F3146
triadic
#9F317D #7D9F31 #317D9F
tetradic
#9F317D #9F8A31 #319F53 #31469F
square
#9F317D #9F8A31 #319F53 #31469F
split-complementary
#9F317D #469F31 #319F8A
monochromatic
#411433 #702358 #9F317D #C6479F #D576B7

Accessibility & contrast

On white

6.54
#9F317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9F317D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F317D
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F317D#FFFFFF#000000##FFFFFF
##9F317D1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B527F
Deuteranopia (green-blind)
#5C647A
Tritanopia (blue-blind)
#A93252
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f317d;
/* rgb */ color: rgb(159, 49, 125);
/* oklch */ color: oklch(50.2% 0.166 342.5);
Tailwind
colors: {
  custom: {
    50: '#bf72a2',
    500: '#9f317d',
    950: '#000000',
  },
}
SCSS
$custom: #9f317d;
$custom-light: #bf72a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f317d",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 318.545,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50181,
    "c": 0.16641,
    "h": 342.5
  },
  "luminance": 0.11048
}

Semantic roles & 50–950 ramp

primary
#9F317D
secondary
#6FBD87
accent
#DC784C
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F317D

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

Preview Lab → · Contrast checker → · Palette generator →

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