#9F1D8D#9F1D8D

#9F1D8D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.199 H 334.8°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9F1D8D
RGBrgb(159, 29, 141)
HSLhsl(308, 69%, 37%)
HSVhsv(308, 82%, 62%)
CMYKcmyk(0%, 81.8%, 11.3%, 37.6%)
CIE-LABlab(38.15, 61.70, -30.92)
CIE-LCHlch(38.15, 69.01, 333.39°)
OKLaboklab(49.34% 0.1801 -0.0847)
OKLCHoklch(49.34% 0.199 334.8)
XYZxyz(19.5454, 10.1745, 26.1286)
Luminance0.1017 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D8D #1D9F2F
analogous
#701D9F #9F1D8D #9F1D4C
triadic
#9F1D8D #8D9F1D #1D8D9F
tetradic
#9F1D8D #9F701D #1D9F2F #1D4C9F
square
#9F1D8D #9F701D #1D9F2F #1D4C9F
split-complementary
#9F1D8D #4C9F1D #1D9F70
monochromatic
#370A31 #6B145F #9F1D8D #D326BB #E056CD

Accessibility & contrast

On white

6.92
#9F1D8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#9F1D8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1D8D
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1D8D#FFFFFF#000000##FFFFFF
##9F1D8D1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#4F608A
Tritanopia (blue-blind)
#A72A55
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9f1d8d;
/* rgb */ color: rgb(159, 29, 141);
/* oklch */ color: oklch(49.3% 0.199 334.8);
Tailwind
colors: {
  custom: {
    50: '#bf6baf',
    500: '#9f1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d8d;
$custom-light: #bf6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d8d",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 308.308,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49338,
    "c": 0.19902,
    "h": 334.8
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#9F1D8D
secondary
#54C464
accent
#EC543C
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130810
muted
#827A7F

Preview Lab

Preview with #9F1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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