#9F317F#9F317F

#9F317F is a mid, vivid pink. Relative luminance 0.111; OKLCH L 50.3% C 0.168 H 341.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#9F317F
RGBrgb(159, 49, 127)
HSLhsl(317, 53%, 41%)
HSVhsv(317, 69%, 62%)
CMYKcmyk(0%, 69.2%, 20.1%, 37.6%)
CIE-LABlab(39.75, 53.21, -19.81)
CIE-LCHlch(39.75, 56.78, 339.58°)
OKLaboklab(50.27% 0.1591 -0.0532)
OKLCHoklch(50.27% 0.168 341.5)
XYZxyz(19.2277, 11.1017, 21.2048)
Luminance0.1110 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F317F #319F51
analogous
#88319F #9F317F #9F3148
triadic
#9F317F #7F9F31 #317F9F
tetradic
#9F317F #9F8831 #319F51 #31489F
square
#9F317F #9F8831 #319F51 #31489F
split-complementary
#9F317F #489F31 #319F88
monochromatic
#411434 #70235A #9F317F #C647A1 #D576B9

Accessibility & contrast

On white

6.52
#9F317F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9F317F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F317F
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F317F#FFFFFF#000000##FFFFFF
##9F317F1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5281
Deuteranopia (green-blind)
#5B647C
Tritanopia (blue-blind)
#A93353
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9f317f;
/* rgb */ color: rgb(159, 49, 127);
/* oklch */ color: oklch(50.3% 0.168 341.5);
Tailwind
colors: {
  custom: {
    50: '#bf72a4',
    500: '#9f317f',
    950: '#000000',
  },
}
SCSS
$custom: #9f317f;
$custom-light: #bf72a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f317f",
  "rgb": {
    "r": 159,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 317.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.50273,
    "c": 0.16773,
    "h": 341.5
  },
  "luminance": 0.111
}

Semantic roles & 50–950 ramp

primary
#9F317F
secondary
#6FBD86
accent
#DC764C
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9F317F

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

Preview Lab → · Contrast checker → · Palette generator →

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