#9C1F97#9C1F97

#9C1F97 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.6% C 0.203 H 330.0°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9C1F97
RGBrgb(156, 31, 151)
HSLhsl(302, 67%, 37%)
HSVhsv(302, 80%, 61%)
CMYKcmyk(0%, 80.1%, 3.2%, 38.8%)
CIE-LABlab(38.35, 62.08, -36.75)
CIE-LCHlch(38.35, 72.14, 329.37°)
OKLaboklab(49.55% 0.1757 -0.1016)
OKLCHoklch(49.55% 0.203 330)
XYZxyz(19.7861, 10.2838, 30.2150)
Luminance0.1028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C1F97 #1F9C24
analogous
#631F9C #9C1F97 #9C1F59
triadic
#9C1F97 #979C1F #1F979C
tetradic
#9C1F97 #9C631F #1F9C24 #1F599C
square
#9C1F97 #9C631F #1F9C24 #1F599C
split-complementary
#9C1F97 #599C1F #1F9C63
monochromatic
#360B34 #691566 #9C1F97 #CF29C8 #DE58D8

Accessibility & contrast

On white

6.87
#9C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9C1F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C1F97
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C1F97#FFFFFF#000000##FFFFFF
##9C1F971.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05509A
Deuteranopia (green-blind)
#476094
Tritanopia (blue-blind)
#A2325B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c1f97;
/* rgb */ color: rgb(156, 31, 151);
/* oklch */ color: oklch(49.6% 0.203 330.0);
Tailwind
colors: {
  custom: {
    50: '#bd6bb6',
    500: '#9c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #9c1f97;
$custom-light: #bd6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c1f97",
  "rgb": {
    "r": 156,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 302.4,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.49553,
    "c": 0.20298,
    "h": 330
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

primary
#9C1F97
secondary
#55C15A
accent
#EA453E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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