#8C2ABC#8C2ABC

#8C2ABC is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.5% C 0.217 H 311.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8C2ABC
RGBrgb(140, 42, 188)
HSLhsl(280, 63%, 45%)
HSVhsv(280, 78%, 74%)
CMYKcmyk(25.5%, 77.7%, 0%, 26.3%)
CIE-LABlab(39.35, 62.34, -57.39)
CIE-LCHlch(39.35, 84.74, 317.37°)
OKLaboklab(50.52% 0.1436 -0.1626)
OKLCHoklch(50.52% 0.217 311.4)
XYZxyz(20.7186, 10.8628, 48.5725)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2ABC #5ABC2A
analogous
#432ABC #8C2ABC #BC2AA3
triadic
#8C2ABC #BC8C2A #2ABC8C
tetradic
#8C2ABC #BC432A #5ABC2A #2AA3BC
square
#8C2ABC #BC432A #5ABC2A #2AA3BC
split-complementary
#8C2ABC #A3BC2A #2ABC43
monochromatic
#411458 #671F8A #8C2ABC #A94CD7 #C17EE2

Accessibility & contrast

On white

6.62
#8C2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8C2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2ABC
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2ABC#FFFFFF#000000##FFFFFF
##8C2ABC1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#055EB9
Tritanopia (blue-blind)
#864E73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2abc;
/* rgb */ color: rgb(140, 42, 188);
/* oklch */ color: oklch(50.5% 0.217 311.4);
Tailwind
colors: {
  custom: {
    50: '#b36fd1',
    500: '#8c2abc',
    950: '#000000',
  },
}
SCSS
$custom: #8c2abc;
$custom-light: #b36fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2abc",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 280.274,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50523,
    "c": 0.2169,
    "h": 311.4
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#8C2ABC
secondary
#93CB77
accent
#E74178
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8C2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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