#9F3C8E#9F3C8E

#9F3C8E is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.2% C 0.163 H 335.0°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9F3C8E
RGBrgb(159, 60, 142)
HSLhsl(310, 45%, 43%)
HSVhsv(310, 62%, 62%)
CMYKcmyk(0%, 62.3%, 10.7%, 37.6%)
CIE-LABlab(42.09, 50.91, -25.37)
CIE-LCHlch(42.09, 56.88, 333.52°)
OKLaboklab(52.2% 0.1479 -0.069)
OKLCHoklch(52.2% 0.163 335)
XYZxyz(20.7966, 12.5573, 26.9144)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F3C8E #3C9F4D
analogous
#7E3C9F #9F3C8E #9F3C5C
triadic
#9F3C8E #8E9F3C #3C8E9F
tetradic
#9F3C8E #9F7E3C #3C9F4D #3C5C9F
square
#9F3C8E #9F7E3C #3C9F4D #3C5C9F
split-complementary
#9F3C8E #5C9F3C #3C9F7E
monochromatic
#461A3F #732B66 #9F3C8E #C058AE #D185C4

Accessibility & contrast

On white

5.98
#9F3C8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#9F3C8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F3C8E
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F3C8E#FFFFFF#000000##FFFFFF
##9F3C8E1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5A91
Deuteranopia (green-blind)
#5B698B
Tritanopia (blue-blind)
#A6425F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9f3c8e;
/* rgb */ color: rgb(159, 60, 142);
/* oklch */ color: oklch(52.2% 0.163 335.0);
Tailwind
colors: {
  custom: {
    50: '#be78af',
    500: '#9f3c8e',
    950: '#000000',
  },
}
SCSS
$custom: #9f3c8e;
$custom-light: #be78af;
$custom-dark: #000000;
JSON
{
  "hex": "#9f3c8e",
  "rgb": {
    "r": 159,
    "g": 60,
    "b": 142
  },
  "hsl": {
    "h": 310.303,
    "s": 45.205,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52201,
    "c": 0.16323,
    "h": 335
  },
  "luminance": 0.12556
}

Semantic roles & 50–950 ramp

primary
#9F3C8E
secondary
#7CBB87
accent
#D56953
background
#FCF7FA
surface
#F8EEF4
border
#D1C9CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9F3C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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