#9C1F8B#9C1F8B

#9C1F8B is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.194 H 334.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9C1F8B
RGBrgb(156, 31, 139)
HSLhsl(308, 67%, 37%)
HSVhsv(308, 80%, 61%)
CMYKcmyk(0%, 80.1%, 10.9%, 38.8%)
CIE-LABlab(37.69, 60.23, -30.46)
CIE-LCHlch(37.69, 67.49, 333.17°)
OKLaboklab(48.87% 0.1755 -0.0834)
OKLCHoklch(48.87% 0.194 334.6)
XYZxyz(18.8607, 9.9137, 25.3413)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C1F8B #1F9C30
analogous
#6F1F9C #9C1F8B #9C1F4D
triadic
#9C1F8B #8B9C1F #1F8B9C
tetradic
#9C1F8B #9C6F1F #1F9C30 #1F4D9C
square
#9C1F8B #9C6F1F #1F9C30 #1F4D9C
split-complementary
#9C1F8B #4D9C1F #1F9C6F
monochromatic
#360B30 #69155E #9C1F8B #CF29B8 #DE58CC

Accessibility & contrast

On white

7.04
#9C1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#9C1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C1F8B
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C1F8B#FFFFFF#000000##FFFFFF
##9C1F8B1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4D8E
Deuteranopia (green-blind)
#4D5F88
Tritanopia (blue-blind)
#A42C54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9c1f8b;
/* rgb */ color: rgb(156, 31, 139);
/* oklch */ color: oklch(48.9% 0.194 334.6);
Tailwind
colors: {
  custom: {
    50: '#bd6bad',
    500: '#9c1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #9c1f8b;
$custom-light: #bd6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#9c1f8b",
  "rgb": {
    "r": 156,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 308.16,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48869,
    "c": 0.19433,
    "h": 334.6
  },
  "luminance": 0.09912
}

Semantic roles & 50–950 ramp

primary
#9C1F8B
secondary
#55C164
accent
#EA553E
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9C1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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