#8C2DAD#8C2DAD

#8C2DAD is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.7% C 0.200 H 315.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8C2DAD
RGBrgb(140, 45, 173)
HSLhsl(285, 59%, 43%)
HSVhsv(285, 74%, 68%)
CMYKcmyk(19.1%, 74%, 0%, 32.2%)
CIE-LABlab(38.67, 58.20, -49.61)
CIE-LCHlch(38.67, 76.47, 319.56°)
OKLaboklab(49.71% 0.1433 -0.1398)
OKLCHoklch(49.71% 0.2 315.7)
XYZxyz(19.2952, 10.4701, 40.5316)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DAD #4EAD2D
analogous
#4C2DAD #8C2DAD #AD2D8E
triadic
#8C2DAD #AD8C2D #2DAD8C
tetradic
#8C2DAD #AD4C2D #4EAD2D #2D8EAD
square
#8C2DAD #AD4C2D #4EAD2D #2D8EAD
split-complementary
#8C2DAD #8EAD2D #2DAD4C
monochromatic
#3D144C #65207C #8C2DAD #AC48CF #C278DC

Accessibility & contrast

On white

6.79
#8C2DAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8C2DAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2DAD
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DAD#FFFFFF#000000##FFFFFF
##8C2DAD1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#2A5EAA
Tritanopia (blue-blind)
#8A486B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c2dad;
/* rgb */ color: rgb(140, 45, 173);
/* oklch */ color: oklch(49.7% 0.200 315.7);
Tailwind
colors: {
  custom: {
    50: '#b270c6',
    500: '#8c2dad',
    950: '#000000',
  },
}
SCSS
$custom: #8c2dad;
$custom-light: #b270c6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2dad",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 173
  },
  "hsl": {
    "h": 284.531,
    "s": 58.716,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49712,
    "c": 0.20017,
    "h": 315.7
  },
  "luminance": 0.10469
}

Semantic roles & 50–950 ramp

primary
#8C2DAD
secondary
#87C472
accent
#E2466E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2DAD

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

Preview Lab → · Contrast checker → · Palette generator →

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