#8C2CBA#8C2CBA

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

Color values

HEX#8C2CBA
RGBrgb(140, 44, 186)
HSLhsl(281, 62%, 45%)
HSVhsv(281, 76%, 73%)
CMYKcmyk(24.7%, 76.3%, 0%, 27.1%)
CIE-LABlab(39.45, 61.22, -56.05)
CIE-LCHlch(39.45, 83.00, 317.53°)
OKLaboklab(50.55% 0.1422 -0.1587)
OKLCHoklch(50.55% 0.213 311.9)
XYZxyz(20.5772, 10.9225, 47.4692)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CBA #5ABA2C
analogous
#452CBA #8C2CBA #BA2CA1
triadic
#8C2CBA #BA8C2C #2CBA8C
tetradic
#8C2CBA #BA452C #5ABA2C #2CA1BA
square
#8C2CBA #BA452C #5ABA2C #2CA1BA
split-complementary
#8C2CBA #A1BA2C #2CBA45
monochromatic
#411557 #672089 #8C2CBA #A94ED5 #C180E1

Accessibility & contrast

On white

6.59
#8C2CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8C2CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CBA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CBA#FFFFFF#000000##FFFFFF
##8C2CBA1.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#125FB7
Tritanopia (blue-blind)
#864E72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2cba;
/* rgb */ color: rgb(140, 44, 186);
/* oklch */ color: oklch(50.5% 0.213 311.9);
Tailwind
colors: {
  custom: {
    50: '#b270d0',
    500: '#8c2cba',
    950: '#000000',
  },
}
SCSS
$custom: #8c2cba;
$custom-light: #b270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2cba",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 280.563,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.21309,
    "h": 311.9
  },
  "luminance": 0.10922
}

Semantic roles & 50–950 ramp

primary
#8C2CBA
secondary
#93CA78
accent
#E54377
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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