#8C1F8A#8C1F8A

#8C1F8A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.186 H 328.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8C1F8A
RGBrgb(140, 31, 138)
HSLhsl(301, 64%, 34%)
HSVhsv(301, 78%, 55%)
CMYKcmyk(0%, 77.9%, 1.4%, 45.1%)
CIE-LABlab(34.79, 56.55, -34.62)
CIE-LCHlch(34.79, 66.31, 328.53°)
OKLaboklab(46.24% 0.1588 -0.0958)
OKLCHoklch(46.24% 0.186 328.9)
XYZxyz(15.8925, 8.3916, 24.8225)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C1F8A #1F8C21
analogous
#571F8C #8C1F8A #8C1F53
triadic
#8C1F8A #8A8C1F #1F8A8C
tetradic
#8C1F8A #8C571F #1F8C21 #1F538C
square
#8C1F8A #8C571F #1F8C21 #1F538C
split-complementary
#8C1F8A #538C1F #1F8C57
monochromatic
#280927 #5A1459 #8C1F8A #BE2ABB #D84ED5

Accessibility & contrast

On white

7.84
#8C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C1F8A
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C1F8A#FFFFFF#000000##FFFFFF
##8C1F8A1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08498D
Deuteranopia (green-blind)
#3F5787
Tritanopia (blue-blind)
#913054
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8c1f8a;
/* rgb */ color: rgb(140, 31, 138);
/* oklch */ color: oklch(46.2% 0.186 328.9);
Tailwind
colors: {
  custom: {
    50: '#b168ac',
    500: '#8c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8c1f8a;
$custom-light: #b168ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8c1f8a",
  "rgb": {
    "r": 140,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 301.101,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.18551,
    "h": 328.9
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#8C1F8A
secondary
#4CBB4E
accent
#E74441
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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