#8C2EA0#8C2EA0

#8C2EA0 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.187 H 320.0°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8C2EA0
RGBrgb(140, 46, 160)
HSLhsl(289, 55%, 40%)
HSVhsv(289, 71%, 63%)
CMYKcmyk(12.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(37.96, 55.25, -42.96)
CIE-LCHlch(37.96, 69.99, 322.13°)
OKLaboklab(48.94% 0.1435 -0.1203)
OKLCHoklch(48.94% 0.187 320)
XYZxyz(18.1366, 10.0684, 34.2390)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EA0 #42A02E
analogous
#532EA0 #8C2EA0 #A02E7B
triadic
#8C2EA0 #A08C2E #2EA08C
tetradic
#8C2EA0 #A0532E #42A02E #2E7BA0
square
#8C2EA0 #A0532E #42A02E #2E7BA0
split-complementary
#8C2EA0 #7BA02E #2EA053
monochromatic
#391341 #622070 #8C2EA0 #B142C9 #C572D6

Accessibility & contrast

On white

6.97
#8C2EA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8C2EA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EA0
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EA0#FFFFFF#000000##FFFFFF
##8C2EA01.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A3
Deuteranopia (green-blind)
#385D9D
Tritanopia (blue-blind)
#8D4364
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8c2ea0;
/* rgb */ color: rgb(140, 46, 160);
/* oklch */ color: oklch(48.9% 0.187 320.0);
Tailwind
colors: {
  custom: {
    50: '#b170bd',
    500: '#8c2ea0',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ea0;
$custom-light: #b170bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ea0",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 289.474,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.18723,
    "h": 320
  },
  "luminance": 0.10068
}

Semantic roles & 50–950 ramp

primary
#8C2EA0
secondary
#7ABE6C
accent
#DF4963
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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