#8C2CA8#8C2CA8

#8C2CA8 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.197 H 317.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8C2CA8
RGBrgb(140, 44, 168)
HSLhsl(286, 58%, 42%)
HSVhsv(286, 74%, 66%)
CMYKcmyk(16.7%, 73.8%, 0%, 34.1%)
CIE-LABlab(38.21, 57.58, -47.37)
CIE-LCHlch(38.21, 74.56, 320.56°)
OKLaboklab(49.28% 0.1448 -0.1332)
OKLCHoklch(49.28% 0.197 317.4)
XYZxyz(18.7828, 10.2048, 38.0185)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CA8 #48A82C
analogous
#4E2CA8 #8C2CA8 #A82C86
triadic
#8C2CA8 #A88C2C #2CA88C
tetradic
#8C2CA8 #A84E2C #48A82C #2C86A8
square
#8C2CA8 #A84E2C #48A82C #2C86A8
split-complementary
#8C2CA8 #86A82C #2CA84E
monochromatic
#3B1347 #641F78 #8C2CA8 #AF43CE #C374DB

Accessibility & contrast

On white

6.91
#8C2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8C2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CA8
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CA8#FFFFFF#000000##FFFFFF
##8C2CA81.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2F5DA5
Tritanopia (blue-blind)
#8B4668
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2ca8;
/* rgb */ color: rgb(140, 44, 168);
/* oklch */ color: oklch(49.3% 0.197 317.4);
Tailwind
colors: {
  custom: {
    50: '#b16fc2',
    500: '#8c2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ca8;
$custom-light: #b16fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ca8",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 286.452,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49275,
    "c": 0.19678,
    "h": 317.4
  },
  "luminance": 0.10204
}

Semantic roles & 50–950 ramp

primary
#8C2CA8
secondary
#81C26E
accent
#E24669
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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