#9D1F93#9D1F93

#9D1F93 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.5% C 0.201 H 331.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#9D1F93
RGBrgb(157, 31, 147)
HSLhsl(305, 67%, 37%)
HSVhsv(305, 80%, 62%)
CMYKcmyk(0%, 80.3%, 6.4%, 38.4%)
CIE-LABlab(38.30, 61.66, -34.38)
CIE-LCHlch(38.30, 70.60, 330.86°)
OKLaboklab(49.48% 0.1768 -0.0947)
OKLCHoklch(49.48% 0.201 331.8)
XYZxyz(19.6611, 10.2563, 28.5423)
Luminance0.1026 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F93 #1F9D29
analogous
#681F9D #9D1F93 #9D1F54
triadic
#9D1F93 #939D1F #1F939D
tetradic
#9D1F93 #9D681F #1F9D29 #1F549D
square
#9D1F93 #9D681F #1F9D29 #1F549D
split-complementary
#9D1F93 #549D1F #1F9D68
monochromatic
#370B33 #6A1563 #9D1F93 #D029C3 #DE58D3

Accessibility & contrast

On white

6.88
#9D1F93 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9D1F93 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F93
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F93#FFFFFF#000000##FFFFFF
##9D1F931.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124F96
Deuteranopia (green-blind)
#4A6090
Tritanopia (blue-blind)
#A43059
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d1f93;
/* rgb */ color: rgb(157, 31, 147);
/* oklch */ color: oklch(49.5% 0.201 331.8);
Tailwind
colors: {
  custom: {
    50: '#be6bb3',
    500: '#9d1f93',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f93;
$custom-light: #be6bb3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f93",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 304.762,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49479,
    "c": 0.20054,
    "h": 331.8
  },
  "luminance": 0.10255
}

Semantic roles & 50–950 ramp

primary
#9D1F93
secondary
#56C25E
accent
#EA4C3E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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