#9C1F8D#9C1F8D

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

Color values

HEX#9C1F8D
RGBrgb(156, 31, 141)
HSLhsl(307, 67%, 37%)
HSVhsv(307, 80%, 61%)
CMYKcmyk(0%, 80.1%, 9.6%, 38.8%)
CIE-LABlab(37.79, 60.53, -31.52)
CIE-LCHlch(37.79, 68.24, 332.49°)
OKLaboklab(48.98% 0.1756 -0.0865)
OKLCHoklch(48.98% 0.196 333.8)
XYZxyz(19.0082, 9.9727, 26.1180)
Luminance0.0997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C1F8D #1F9C2E
analogous
#6D1F9C #9C1F8D #9C1F4F
triadic
#9C1F8D #8D9C1F #1F8D9C
tetradic
#9C1F8D #9C6D1F #1F9C2E #1F4F9C
square
#9C1F8D #9C6D1F #1F9C2E #1F4F9C
split-complementary
#9C1F8D #4F9C1F #1F9C6D
monochromatic
#360B31 #69155F #9C1F8D #CF29BB #DE58CE

Accessibility & contrast

On white

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

On black

2.99
#9C1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9C1F8D#FFFFFF#000000##FFFFFF
##9C1F8D1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E90
Deuteranopia (green-blind)
#4C5F8A
Tritanopia (blue-blind)
#A32D56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9c1f8d;
/* rgb */ color: rgb(156, 31, 141);
/* oklch */ color: oklch(49.0% 0.196 333.8);
Tailwind
colors: {
  custom: {
    50: '#bd6baf',
    500: '#9c1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9c1f8d;
$custom-light: #bd6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#9c1f8d",
  "rgb": {
    "r": 156,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 307.2,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48979,
    "c": 0.19575,
    "h": 333.8
  },
  "luminance": 0.09971
}

Semantic roles & 50–950 ramp

primary
#9C1F8D
secondary
#55C162
accent
#EA533E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9C1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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