#9D1F9F#9D1F9F

#9D1F9F is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.209 H 327.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#9D1F9F
RGBrgb(157, 31, 159)
HSLhsl(299, 67%, 37%)
HSVhsv(299, 81%, 62%)
CMYKcmyk(1.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(38.99, 63.57, -40.56)
CIE-LCHlch(38.99, 75.41, 327.46°)
OKLaboklab(50.19% 0.1765 -0.1127)
OKLCHoklch(50.19% 0.209 327.4)
XYZxyz(20.6523, 10.6528, 33.7626)
Luminance0.1065 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F9F #219F1F
analogous
#5D1F9F #9D1F9F #9F1F61
triadic
#9D1F9F #9F9D1F #1F9F9D
tetradic
#9D1F9F #9F5D1F #219F1F #1F619F
square
#9D1F9F #9F5D1F #219F1F #1F619F
split-complementary
#9D1F9F #619F1F #1F9F5D
monochromatic
#380B39 #6A156C #9D1F9F #D029D2 #DD5ADF

Accessibility & contrast

On white

6.71
#9D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9D1F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F9F
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F9F#FFFFFF#000000##FFFFFF
##9D1F9F1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#43619C
Tritanopia (blue-blind)
#A23660
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d1f9f;
/* rgb */ color: rgb(157, 31, 159);
/* oklch */ color: oklch(50.2% 0.209 327.4);
Tailwind
colors: {
  custom: {
    50: '#be6cbc',
    500: '#9d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f9f;
$custom-light: #be6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f9f",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 299.063,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.50193,
    "c": 0.20939,
    "h": 327.4
  },
  "luminance": 0.10651
}

Semantic roles & 50–950 ramp

primary
#9D1F9F
secondary
#59C357
accent
#EA3E40
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130812
muted
#827A81

Preview Lab

Preview with #9D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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