#8C2AB2#8C2AB2

#8C2AB2 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.208 H 314.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8C2AB2
RGBrgb(140, 42, 178)
HSLhsl(283, 62%, 43%)
HSVhsv(283, 76%, 70%)
CMYKcmyk(21.3%, 76.4%, 0%, 30.2%)
CIE-LABlab(38.63, 60.31, -52.64)
CIE-LCHlch(38.63, 80.05, 318.88°)
OKLaboklab(49.79% 0.1454 -0.1486)
OKLCHoklch(49.79% 0.208 314.4)
XYZxyz(19.6777, 10.4464, 43.0907)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2AB2 #50B22A
analogous
#482AB2 #8C2AB2 #B22A94
triadic
#8C2AB2 #B28C2A #2AB28C
tetradic
#8C2AB2 #B2482A #50B22A #2A94B2
square
#8C2AB2 #B2482A #50B22A #2A94B2
split-complementary
#8C2AB2 #94B22A #2AB248
monochromatic
#3E134F #651E80 #8C2AB2 #AC46D3 #C277DF

Accessibility & contrast

On white

6.80
#8C2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2AB2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2AB2#FFFFFF#000000##FFFFFF
##8C2AB21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#205DAF
Tritanopia (blue-blind)
#88496D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c2ab2;
/* rgb */ color: rgb(140, 42, 178);
/* oklch */ color: oklch(49.8% 0.208 314.4);
Tailwind
colors: {
  custom: {
    50: '#b26eca',
    500: '#8c2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ab2;
$custom-light: #b26eca;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ab2",
  "rgb": {
    "r": 140,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 283.235,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.49792,
    "c": 0.20791,
    "h": 314.4
  },
  "luminance": 0.10446
}

Semantic roles & 50–950 ramp

primary
#8C2AB2
secondary
#89C771
accent
#E54370
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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