#8C2EA6#8C2EA6

#8C2EA6 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.193 H 317.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8C2EA6
RGBrgb(140, 46, 166)
HSLhsl(287, 57%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.7%, 72.3%, 0%, 34.9%)
CIE-LABlab(38.35, 56.42, -45.95)
CIE-LCHlch(38.35, 72.77, 320.84°)
OKLaboklab(49.33% 0.143 -0.129)
OKLCHoklch(49.33% 0.193 317.9)
XYZxyz(18.6742, 10.2834, 37.0702)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EA6 #48A62E
analogous
#502EA6 #8C2EA6 #A62E84
triadic
#8C2EA6 #A68C2E #2EA68C
tetradic
#8C2EA6 #A6502E #48A62E #2E84A6
square
#8C2EA6 #A6502E #48A62E #2E84A6
split-complementary
#8C2EA6 #84A62E #2EA650
monochromatic
#3B1346 #642176 #8C2EA6 #AF46CC #C376D9

Accessibility & contrast

On white

6.87
#8C2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8C2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EA6
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EA6#FFFFFF#000000##FFFFFF
##8C2EA61.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#335DA3
Tritanopia (blue-blind)
#8B4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8c2ea6;
/* rgb */ color: rgb(140, 46, 166);
/* oklch */ color: oklch(49.3% 0.193 317.9);
Tailwind
colors: {
  custom: {
    50: '#b170c1',
    500: '#8c2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ea6;
$custom-light: #b170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ea6",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 287,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49333,
    "c": 0.19265,
    "h": 317.9
  },
  "luminance": 0.10283
}

Semantic roles & 50–950 ramp

primary
#8C2EA6
secondary
#81C16F
accent
#E04869
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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