#8C2EC1#8C2EC1

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

Color values

HEX#8C2EC1
RGBrgb(140, 46, 193)
HSLhsl(278, 62%, 47%)
HSVhsv(278, 76%, 76%)
CMYKcmyk(27.5%, 76.2%, 0%, 24.3%)
CIE-LABlab(40.21, 61.95, -58.92)
CIE-LCHlch(40.21, 85.50, 316.44°)
OKLaboklab(51.25% 0.1392 -0.1671)
OKLCHoklch(51.25% 0.217 309.8)
XYZxyz(21.4159, 11.3801, 51.5102)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EC1 #63C12E
analogous
#422EC1 #8C2EC1 #C12EAD
triadic
#8C2EC1 #C18C2E #2EC18C
tetradic
#8C2EC1 #C1422E #63C12E #2EADC1
square
#8C2EC1 #C1422E #63C12E #2EADC1
split-complementary
#8C2EC1 #ADC12E #2EC142
monochromatic
#44165E #682290 #8C2EC1 #A856D7 #C187E2

Accessibility & contrast

On white

6.41
#8C2EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8C2EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EC1
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EC1#FFFFFF#000000##FFFFFF
##8C2EC11.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#845276
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8c2ec1;
/* rgb */ color: rgb(140, 46, 193);
/* oklch */ color: oklch(51.2% 0.217 309.8);
Tailwind
colors: {
  custom: {
    50: '#b371d5',
    500: '#8c2ec1',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ec1;
$custom-light: #b371d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ec1",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 278.367,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51246,
    "c": 0.21747,
    "h": 309.8
  },
  "luminance": 0.1138
}

Semantic roles & 50–950 ramp

primary
#8C2EC1
secondary
#9BCC7F
accent
#E5437D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C2EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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