#8C2CB9#8C2CB9

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

Color values

HEX#8C2CB9
RGBrgb(140, 44, 185)
HSLhsl(281, 62%, 45%)
HSVhsv(281, 76%, 73%)
CMYKcmyk(24.3%, 76.2%, 0%, 27.5%)
CIE-LABlab(39.38, 61.01, -55.58)
CIE-LCHlch(39.38, 82.53, 317.67°)
OKLaboklab(50.48% 0.1424 -0.1573)
OKLCHoklch(50.48% 0.212 312.2)
XYZxyz(20.4712, 10.8802, 46.9112)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CB9 #59B92C
analogous
#452CB9 #8C2CB9 #B92CA0
triadic
#8C2CB9 #B98C2C #2CB98C
tetradic
#8C2CB9 #B9452C #59B92C #2CA0B9
square
#8C2CB9 #B9452C #59B92C #2CA0B9
split-complementary
#8C2CB9 #A0B92C #2CB945
monochromatic
#411456 #672088 #8C2CB9 #AA4DD5 #C17FE1

Accessibility & contrast

On white

6.61
#8C2CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2CB9
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CB9#FFFFFF#000000##FFFFFF
##8C2CB91.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#155FB6
Tritanopia (blue-blind)
#874D71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2cb9;
/* rgb */ color: rgb(140, 44, 185);
/* oklch */ color: oklch(50.5% 0.212 312.2);
Tailwind
colors: {
  custom: {
    50: '#b270cf',
    500: '#8c2cb9',
    950: '#000000',
  },
}
SCSS
$custom: #8c2cb9;
$custom-light: #b270cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2cb9",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 280.851,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50475,
    "c": 0.21217,
    "h": 312.2
  },
  "luminance": 0.1088
}

Semantic roles & 50–950 ramp

primary
#8C2CB9
secondary
#92C978
accent
#E54377
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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