#9F397D#9F397D

#9F397D is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.1% C 0.155 H 343.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9F397D
RGBrgb(159, 57, 125)
HSLhsl(320, 47%, 42%)
HSVhsv(320, 64%, 62%)
CMYKcmyk(0%, 64.2%, 21.4%, 37.6%)
CIE-LABlab(40.86, 49.61, -16.86)
CIE-LCHlch(40.86, 52.40, 341.23°)
OKLaboklab(51.06% 0.1486 -0.045)
OKLCHoklch(51.06% 0.155 343.2)
XYZxyz(19.4634, 11.7797, 20.6467)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F397D #399F5B
analogous
#8E399F #9F397D #9F394A
triadic
#9F397D #7D9F39 #397D9F
tetradic
#9F397D #9F8E39 #399F5B #394A9F
square
#9F397D #9F8E39 #399F5B #394A9F
split-complementary
#9F397D #4A9F39 #399F8E
monochromatic
#451936 #72295A #9F397D #C2549D #D281B7

Accessibility & contrast

On white

6.26
#9F397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9F397D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F397D
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F397D#FFFFFF#000000##FFFFFF
##9F397D1.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42567F
Deuteranopia (green-blind)
#60677B
Tritanopia (blue-blind)
#A93956
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9f397d;
/* rgb */ color: rgb(159, 57, 125);
/* oklch */ color: oklch(51.1% 0.155 343.2);
Tailwind
colors: {
  custom: {
    50: '#be76a2',
    500: '#9f397d',
    950: '#000000',
  },
}
SCSS
$custom: #9f397d;
$custom-light: #be76a2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f397d",
  "rgb": {
    "r": 159,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 320,
    "s": 47.222,
    "l": 42.353
  },
  "oklch": {
    "l": 0.5106,
    "c": 0.15527,
    "h": 343.2
  },
  "luminance": 0.11778
}

Semantic roles & 50–950 ramp

primary
#9F397D
secondary
#78BB8F
accent
#D77E51
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13090F
muted
#827B7F

Preview Lab

Preview with #9F397D

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

Preview Lab → · Contrast checker → · Palette generator →

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