#8C2E8A#8C2E8A

#8C2E8A is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.168 H 328.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8C2E8A
RGBrgb(140, 46, 138)
HSLhsl(301, 51%, 36%)
HSVhsv(301, 67%, 55%)
CMYKcmyk(0%, 67.1%, 1.4%, 45.1%)
CIE-LABlab(36.68, 51.18, -31.62)
CIE-LCHlch(36.68, 60.16, 328.29°)
OKLaboklab(47.6% 0.1435 -0.0873)
OKLCHoklch(47.6% 0.168 328.7)
XYZxyz(16.3795, 9.3656, 24.9849)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2E8A #2E8C30
analogous
#5F2E8C #8C2E8A #8C2E5B
triadic
#8C2E8A #8A8C2E #2E8A8C
tetradic
#8C2E8A #8C5F2E #2E8C30 #2E5B8C
square
#8C2E8A #8C5F2E #2E8C30 #2E5B8C
split-complementary
#8C2E8A #5B8C2E #2E8C5F
monochromatic
#30102F #5E1F5D #8C2E8A #BA3DB7 #CD67CB

Accessibility & contrast

On white

7.31
#8C2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8C2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2E8A
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2E8A#FFFFFF#000000##FFFFFF
##8C2E8A1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234E8D
Deuteranopia (green-blind)
#465B88
Tritanopia (blue-blind)
#913A58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8c2e8a;
/* rgb */ color: rgb(140, 46, 138);
/* oklch */ color: oklch(47.6% 0.168 328.7);
Tailwind
colors: {
  custom: {
    50: '#b16fac',
    500: '#8c2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #8c2e8a;
$custom-light: #b16fac;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2e8a",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 301.277,
    "s": 50.538,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47599,
    "c": 0.16798,
    "h": 328.7
  },
  "luminance": 0.09364
}

Semantic roles & 50–950 ramp

primary
#8C2E8A
secondary
#62B464
accent
#DA514E
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8C2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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