#8C2EB8#8C2EB8

#8C2EB8 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.209 H 312.3°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8C2EB8
RGBrgb(140, 46, 184)
HSLhsl(281, 60%, 45%)
HSVhsv(281, 75%, 72%)
CMYKcmyk(23.9%, 75%, 0%, 27.8%)
CIE-LABlab(39.56, 60.07, -54.68)
CIE-LCHlch(39.56, 81.23, 317.69°)
OKLaboklab(50.59% 0.1408 -0.1547)
OKLCHoklch(50.59% 0.209 312.3)
XYZxyz(20.4424, 10.9907, 46.3827)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EB8 #5AB82E
analogous
#472EB8 #8C2EB8 #B82E9F
triadic
#8C2EB8 #B88C2E #2EB88C
tetradic
#8C2EB8 #B8472E #5AB82E #2E9FB8
square
#8C2EB8 #B8472E #5AB82E #2E9FB8
split-complementary
#8C2EB8 #9FB82E #2EB847
monochromatic
#411656 #672287 #8C2EB8 #A950D3 #C181DF

Accessibility & contrast

On white

6.57
#8C2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8C2EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EB8
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EB8#FFFFFF#000000##FFFFFF
##8C2EB81.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BC
Deuteranopia (green-blind)
#1A5FB5
Tritanopia (blue-blind)
#874E71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2eb8;
/* rgb */ color: rgb(140, 46, 184);
/* oklch */ color: oklch(50.6% 0.209 312.3);
Tailwind
colors: {
  custom: {
    50: '#b271ce',
    500: '#8c2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #8c2eb8;
$custom-light: #b271ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2eb8",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 280.87,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50585,
    "c": 0.20915,
    "h": 312.3
  },
  "luminance": 0.1099
}

Semantic roles & 50–950 ramp

primary
#8C2EB8
secondary
#93C879
accent
#E34577
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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