#8C1F9C#8C1F9C

#8C1F9C is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.200 H 322.1°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8C1F9C
RGBrgb(140, 31, 156)
HSLhsl(292, 67%, 37%)
HSVhsv(292, 80%, 61%)
CMYKcmyk(10.3%, 80.1%, 0%, 38.8%)
CIE-LABlab(35.90, 59.68, -43.85)
CIE-LCHlch(35.90, 74.06, 323.69°)
OKLaboklab(47.39% 0.1577 -0.1228)
OKLCHoklch(47.39% 0.2 322.1)
XYZxyz(17.3053, 8.9567, 32.2634)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C1F9C #2F9C1F
analogous
#4E1F9C #8C1F9C #9C1F6E
triadic
#8C1F9C #9C8C1F #1F9C8C
tetradic
#8C1F9C #9C4E1F #2F9C1F #1F6E9C
square
#8C1F9C #9C4E1F #2F9C1F #1F6E9C
split-complementary
#8C1F9C #6E9C1F #1F9C4E
monochromatic
#300B36 #5E1569 #8C1F9C #BA29CF #CD58DE

Accessibility & contrast

On white

7.52
#8C1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8C1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C1F9C
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C1F9C#FFFFFF#000000##FFFFFF
##8C1F9C1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#325899
Tritanopia (blue-blind)
#8E395E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8c1f9c;
/* rgb */ color: rgb(140, 31, 156);
/* oklch */ color: oklch(47.4% 0.200 322.1);
Tailwind
colors: {
  custom: {
    50: '#b269ba',
    500: '#8c1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #8c1f9c;
$custom-light: #b269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8c1f9c",
  "rgb": {
    "r": 140,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 292.32,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.19984,
    "h": 322.1
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#8C1F9C
secondary
#63C155
accent
#EA3E54
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8C1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

#8C1F9C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva