#9F3C8A#9F3C8A

#9F3C8A is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.0% C 0.160 H 336.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9F3C8A
RGBrgb(159, 60, 138)
HSLhsl(313, 45%, 43%)
HSVhsv(313, 62%, 62%)
CMYKcmyk(0%, 62.3%, 13.2%, 37.6%)
CIE-LABlab(41.91, 50.27, -23.22)
CIE-LCHlch(41.91, 55.37, 335.21°)
OKLaboklab(52.01% 0.1473 -0.0629)
OKLCHoklch(52.01% 0.16 336.9)
XYZxyz(20.5016, 12.4393, 25.3611)
Luminance0.1244 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3C8A #3C9F51
analogous
#823C9F #9F3C8A #9F3C59
triadic
#9F3C8A #8A9F3C #3C8A9F
tetradic
#9F3C8A #9F823C #3C9F51 #3C599F
square
#9F3C8A #9F823C #3C9F51 #3C599F
split-complementary
#9F3C8A #599F3C #3C9F82
monochromatic
#461A3D #732B63 #9F3C8A #C058AA #D185C1

Accessibility & contrast

On white

6.02
#9F3C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#9F3C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3C8A
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3C8A#FFFFFF#000000##FFFFFF
##9F3C8A1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E598C
Deuteranopia (green-blind)
#5D6887
Tritanopia (blue-blind)
#A7415D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f3c8a;
/* rgb */ color: rgb(159, 60, 138);
/* oklch */ color: oklch(52.0% 0.160 336.9);
Tailwind
colors: {
  custom: {
    50: '#be78ac',
    500: '#9f3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #9f3c8a;
$custom-light: #be78ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3c8a",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 312.727,
    "s": 45.205,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52008,
    "c": 0.16014,
    "h": 336.9
  },
  "luminance": 0.12438
}

Semantic roles & 50–950 ramp

primary
#9F3C8A
secondary
#7CBB89
accent
#D56E53
background
#FCF7FA
surface
#F8EEF4
border
#D1C9CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9F3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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