#8C2CA6#8C2CA6

#8C2CA6 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.195 H 318.1°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8C2CA6
RGBrgb(140, 44, 166)
HSLhsl(287, 58%, 41%)
HSVhsv(287, 73%, 65%)
CMYKcmyk(15.7%, 73.5%, 0%, 34.9%)
CIE-LABlab(38.08, 57.19, -46.39)
CIE-LCHlch(38.08, 73.64, 320.95°)
OKLaboklab(49.14% 0.145 -0.1303)
OKLCHoklch(49.14% 0.195 318.1)
XYZxyz(18.5979, 10.1308, 37.0448)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CA6 #46A62C
analogous
#4F2CA6 #8C2CA6 #A62C83
triadic
#8C2CA6 #A68C2C #2CA68C
tetradic
#8C2CA6 #A64F2C #46A62C #2C83A6
square
#8C2CA6 #A64F2C #46A62C #2C83A6
split-complementary
#8C2CA6 #83A62C #2CA64F
monochromatic
#3A1245 #631F76 #8C2CA6 #AF42CD #C473DA

Accessibility & contrast

On white

6.94
#8C2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8C2CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CA6
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CA6#FFFFFF#000000##FFFFFF
##8C2CA61.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#315DA3
Tritanopia (blue-blind)
#8B4567
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2ca6;
/* rgb */ color: rgb(140, 44, 166);
/* oklch */ color: oklch(49.1% 0.195 318.1);
Tailwind
colors: {
  custom: {
    50: '#b16fc1',
    500: '#8c2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ca6;
$custom-light: #b16fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ca6",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 287.213,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4914,
    "c": 0.19498,
    "h": 318.1
  },
  "luminance": 0.1013
}

Semantic roles & 50–950 ramp

primary
#8C2CA6
secondary
#7FC16D
accent
#E14667
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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