#8C2DB2#8C2DB2

#8C2DB2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.205 H 314.2°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8C2DB2
RGBrgb(140, 45, 178)
HSLhsl(283, 60%, 44%)
HSVhsv(283, 75%, 70%)
CMYKcmyk(21.3%, 74.7%, 0%, 30.2%)
CIE-LABlab(39.01, 59.21, -52.03)
CIE-LCHlch(39.01, 78.82, 318.69°)
OKLaboklab(50.06% 0.1426 -0.1469)
OKLCHoklch(50.06% 0.205 314.2)
XYZxyz(19.7881, 10.6672, 43.1275)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DB2 #53B22D
analogous
#492DB2 #8C2DB2 #B22D95
triadic
#8C2DB2 #B28C2D #2DB28C
tetradic
#8C2DB2 #B2492D #53B22D #2D95B2
square
#8C2DB2 #B2492D #53B22D #2D95B2
split-complementary
#8C2DB2 #95B22D #2DB249
monochromatic
#3F1450 #662181 #8C2DB2 #AB4BD1 #C27CDE

Accessibility & contrast

On white

6.70
#8C2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2DB2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DB2#FFFFFF#000000##FFFFFF
##8C2DB21.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#245EAF
Tritanopia (blue-blind)
#884B6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8c2db2;
/* rgb */ color: rgb(140, 45, 178);
/* oklch */ color: oklch(50.1% 0.205 314.2);
Tailwind
colors: {
  custom: {
    50: '#b270ca',
    500: '#8c2db2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2db2;
$custom-light: #b270ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2db2",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 282.857,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50062,
    "c": 0.20472,
    "h": 314.2
  },
  "luminance": 0.10667
}

Semantic roles & 50–950 ramp

primary
#8C2DB2
secondary
#8CC675
accent
#E34572
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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