#9F1D9D#9F1D9D

#9F1D9D is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.3% C 0.210 H 328.9°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#9F1D9D
RGBrgb(159, 29, 157)
HSLhsl(301, 69%, 37%)
HSVhsv(301, 82%, 62%)
CMYKcmyk(0%, 81.8%, 1.3%, 37.6%)
CIE-LABlab(39.05, 64.15, -39.24)
CIE-LCHlch(39.05, 75.20, 328.55°)
OKLaboklab(50.26% 0.1801 -0.1088)
OKLCHoklch(50.26% 0.21 328.9)
XYZxyz(20.8231, 10.6856, 32.8576)
Luminance0.1068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F1D9D #1D9F1F
analogous
#601D9F #9F1D9D #9F1D5C
triadic
#9F1D9D #9D9F1D #1D9D9F
tetradic
#9F1D9D #9F601D #1D9F1F #1D5C9F
square
#9F1D9D #9F601D #1D9F1F #1D5C9F
split-complementary
#9F1D9D #5C9F1D #1D9F60
monochromatic
#370A37 #6B146A #9F1D9D #D326D0 #E056DE

Accessibility & contrast

On white

6.69
#9F1D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9F1D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F1D9D
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F1D9D#FFFFFF#000000##FFFFFF
##9F1D9D1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#46629A
Tritanopia (blue-blind)
#A5345E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9f1d9d;
/* rgb */ color: rgb(159, 29, 157);
/* oklch */ color: oklch(50.3% 0.210 328.9);
Tailwind
colors: {
  custom: {
    50: '#bf6bba',
    500: '#9f1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #9f1d9d;
$custom-light: #bf6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#9f1d9d",
  "rgb": {
    "r": 159,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 300.923,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.50261,
    "c": 0.21043,
    "h": 328.9
  },
  "luminance": 0.10684
}

Semantic roles & 50–950 ramp

primary
#9F1D9D
secondary
#54C456
accent
#EC3F3C
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9F1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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