#8C2AB7#8C2AB7

#8C2AB7 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.212 H 312.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8C2AB7
RGBrgb(140, 42, 183)
HSLhsl(282, 63%, 44%)
HSVhsv(282, 77%, 72%)
CMYKcmyk(23.5%, 77%, 0%, 28.2%)
CIE-LABlab(38.99, 61.32, -55.03)
CIE-LCHlch(38.99, 82.39, 318.09°)
OKLaboklab(50.15% 0.1445 -0.1557)
OKLCHoklch(50.15% 0.212 312.9)
XYZxyz(20.1889, 10.6509, 45.7829)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AB7 #55B72A
analogous
#462AB7 #8C2AB7 #B72A9C
triadic
#8C2AB7 #B78C2A #2AB78C
tetradic
#8C2AB7 #B7462A #55B72A #2A9CB7
square
#8C2AB7 #B7462A #55B72A #2A9CB7
split-complementary
#8C2AB7 #9CB72A #2AB746
monochromatic
#401353 #661F85 #8C2AB7 #AA49D5 #C27BE1

Accessibility & contrast

On white

6.71
#8C2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8C2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2AB7
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AB7#FFFFFF#000000##FFFFFF
##8C2AB71.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#175EB4
Tritanopia (blue-blind)
#874B70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c2ab7;
/* rgb */ color: rgb(140, 42, 183);
/* oklch */ color: oklch(50.2% 0.212 312.9);
Tailwind
colors: {
  custom: {
    50: '#b26fcd',
    500: '#8c2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ab7;
$custom-light: #b26fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ab7",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 281.702,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50154,
    "c": 0.2124,
    "h": 312.9
  },
  "luminance": 0.1065
}

Semantic roles & 50–950 ramp

primary
#8C2AB7
secondary
#8EC974
accent
#E64274
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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