#9F3B8A#9F3B8A

#9F3B8A is a mid, vivid pink. Relative luminance 0.123; OKLCH L 51.9% C 0.162 H 336.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9F3B8A
RGBrgb(159, 59, 138)
HSLhsl(313, 46%, 43%)
HSVhsv(313, 63%, 62%)
CMYKcmyk(0%, 62.9%, 13.2%, 37.6%)
CIE-LABlab(41.74, 50.71, -23.47)
CIE-LCHlch(41.74, 55.88, 335.17°)
OKLaboklab(51.89% 0.1486 -0.0636)
OKLCHoklch(51.89% 0.162 336.8)
XYZxyz(20.4497, 12.3355, 25.3438)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3B8A #3B9F50
analogous
#823B9F #9F3B8A #9F3B58
triadic
#9F3B8A #8A9F3B #3B8A9F
tetradic
#9F3B8A #9F823B #3B9F50 #3B589F
square
#9F3B8A #9F823B #3B9F50 #3B589F
split-complementary
#9F3B8A #589F3B #3B9F82
monochromatic
#461A3D #722A63 #9F3B8A #C157AA #D183C1

Accessibility & contrast

On white

6.06
#9F3B8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9F3B8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3B8A
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3B8A#FFFFFF#000000##FFFFFF
##9F3B8A1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D598C
Deuteranopia (green-blind)
#5C6887
Tritanopia (blue-blind)
#A7405D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9f3b8a;
/* rgb */ color: rgb(159, 59, 138);
/* oklch */ color: oklch(51.9% 0.162 336.8);
Tailwind
colors: {
  custom: {
    50: '#be77ac',
    500: '#9f3b8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f3b8a;
$custom-light: #be77ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3b8a",
  "rgb": {
    "r": 159,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 312.6,
    "s": 45.872,
    "l": 42.745
  },
  "oklch": {
    "l": 0.51889,
    "c": 0.16162,
    "h": 336.8
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#9F3B8A
secondary
#7BBB88
accent
#D66E52
background
#FCF7FA
surface
#F8EEF4
border
#D1C9CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9F3B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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