#9D1F8A#9D1F8A

#9D1F8A is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.194 H 335.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#9D1F8A
RGBrgb(157, 31, 138)
HSLhsl(309, 67%, 37%)
HSVhsv(309, 80%, 62%)
CMYKcmyk(0%, 80.3%, 12.1%, 38.4%)
CIE-LABlab(37.82, 60.30, -29.63)
CIE-LCHlch(37.82, 67.19, 333.83°)
OKLaboklab(48.98% 0.1764 -0.081)
OKLCHoklch(48.98% 0.194 335.3)
XYZxyz(18.9823, 9.9848, 24.9674)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F8A #1F9D32
analogous
#711F9D #9D1F8A #9D1F4B
triadic
#9D1F8A #8A9D1F #1F8A9D
tetradic
#9D1F8A #9D711F #1F9D32 #1F4B9D
square
#9D1F8A #9D711F #1F9D32 #1F4B9D
split-complementary
#9D1F8A #4B9D1F #1F9D71
monochromatic
#370B30 #6A155D #9D1F8A #D029B7 #DE58CA

Accessibility & contrast

On white

7.01
#9D1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#9D1F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F8A
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F8A#FFFFFF#000000##FFFFFF
##9D1F8A1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#4F6087
Tritanopia (blue-blind)
#A52B54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1f8a;
/* rgb */ color: rgb(157, 31, 138);
/* oklch */ color: oklch(49.0% 0.194 335.3);
Tailwind
colors: {
  custom: {
    50: '#be6bac',
    500: '#9d1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f8a;
$custom-light: #be6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f8a",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 309.048,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.19416,
    "h": 335.3
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#9D1F8A
secondary
#56C266
accent
#EA583E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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