#8C2EC0#8C2EC0

#8C2EC0 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.217 H 310.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8C2EC0
RGBrgb(140, 46, 192)
HSLhsl(279, 61%, 47%)
HSVhsv(279, 76%, 75%)
CMYKcmyk(27.1%, 76%, 0%, 24.7%)
CIE-LABlab(40.14, 61.74, -58.45)
CIE-LCHlch(40.14, 85.02, 316.57°)
OKLaboklab(51.17% 0.1394 -0.1657)
OKLCHoklch(51.17% 0.217 310.1)
XYZxyz(21.3048, 11.3357, 50.9246)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EC0 #62C02E
analogous
#432EC0 #8C2EC0 #C02EAB
triadic
#8C2EC0 #C08C2E #2EC08C
tetradic
#8C2EC0 #C0432E #62C02E #2EABC0
square
#8C2EC0 #C0432E #62C02E #2EABC0
split-complementary
#8C2EC0 #ABC02E #2EC043
monochromatic
#44165D #68228F #8C2EC0 #A855D6 #C186E2

Accessibility & contrast

On white

6.43
#8C2EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8C2EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EC0
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EC0#FFFFFF#000000##FFFFFF
##8C2EC01.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#855176
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c2ec0;
/* rgb */ color: rgb(140, 46, 192);
/* oklch */ color: oklch(51.2% 0.217 310.1);
Tailwind
colors: {
  custom: {
    50: '#b371d4',
    500: '#8c2ec0',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ec0;
$custom-light: #b371d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ec0",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 278.63,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51172,
    "c": 0.21654,
    "h": 310.1
  },
  "luminance": 0.11335
}

Semantic roles & 50–950 ramp

primary
#8C2EC0
secondary
#9ACC7E
accent
#E4437D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C2EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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