#8C2B8A#8C2B8A

#8C2B8A is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.172 H 328.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8C2B8A
RGBrgb(140, 43, 138)
HSLhsl(301, 53%, 36%)
HSVhsv(301, 69%, 55%)
CMYKcmyk(0%, 69.3%, 1.4%, 45.1%)
CIE-LABlab(36.25, 52.38, -32.29)
CIE-LCHlch(36.25, 61.54, 328.35°)
OKLaboklab(47.29% 0.147 -0.0892)
OKLCHoklch(47.29% 0.172 328.7)
XYZxyz(16.2664, 9.1393, 24.9472)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2B8A #2B8C2D
analogous
#5D2B8C #8C2B8A #8C2B59
triadic
#8C2B8A #8A8C2B #2B8A8C
tetradic
#8C2B8A #8C5D2B #2B8C2D #2B598C
square
#8C2B8A #8C5D2B #2B8C2D #2B598C
split-complementary
#8C2B8A #598C2B #2B8C5D
monochromatic
#2E0E2E #5D1D5C #8C2B8A #BB39B8 #CF62CD

Accessibility & contrast

On white

7.43
#8C2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8C2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2B8A
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2B8A#FFFFFF#000000##FFFFFF
##8C2B8A1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#455A87
Tritanopia (blue-blind)
#913857
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8c2b8a;
/* rgb */ color: rgb(140, 43, 138);
/* oklch */ color: oklch(47.3% 0.172 328.7);
Tailwind
colors: {
  custom: {
    50: '#b16dac',
    500: '#8c2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8c2b8a;
$custom-light: #b16dac;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2b8a",
  "rgb": {
    "r": 140,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 301.237,
    "s": 53.005,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47291,
    "c": 0.1719,
    "h": 328.7
  },
  "luminance": 0.09138
}

Semantic roles & 50–950 ramp

primary
#8C2B8A
secondary
#5EB560
accent
#DC4E4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8C2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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