#8C2CD1#8C2CD1

#8C2CD1 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.3% C 0.234 H 305.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8C2CD1
RGBrgb(140, 44, 209)
HSLhsl(275, 65%, 50%)
HSVhsv(275, 79%, 82%)
CMYKcmyk(33%, 78.9%, 0%, 18%)
CIE-LABlab(41.19, 66.09, -66.64)
CIE-LCHlch(41.19, 93.85, 314.76°)
OKLaboklab(52.31% 0.1372 -0.1898)
OKLCHoklch(52.31% 0.234 305.9)
XYZxyz(23.2220, 11.9805, 61.3983)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CD1 #71D12C
analogous
#3A2CD1 #8C2CD1 #D12CC4
triadic
#8C2CD1 #D18C2C #2CD18C
tetradic
#8C2CD1 #D13A2C #71D12C #2CC4D1
square
#8C2CD1 #D13A2C #71D12C #2CC4D1
split-complementary
#8C2CD1 #C4D12C #2CD13A
monochromatic
#48176C #6A219E #8C2CD1 #A85DDD #C390E8

Accessibility & contrast

On white

6.18
#8C2CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8C2CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CD1
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CD1#FFFFFF#000000##FFFFFF
##8C2CD11.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0061CE
Tritanopia (blue-blind)
#7F587F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8c2cd1;
/* rgb */ color: rgb(140, 44, 209);
/* oklch */ color: oklch(52.3% 0.234 305.9);
Tailwind
colors: {
  custom: {
    50: '#b471e0',
    500: '#8c2cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8c2cd1;
$custom-light: #b471e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2cd1",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 209
  },
  "hsl": {
    "h": 274.909,
    "s": 65.217,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52308,
    "c": 0.23416,
    "h": 305.9
  },
  "luminance": 0.1198
}

Semantic roles & 50–950 ramp

primary
#8C2CD1
secondary
#A6D287
accent
#E84086
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C2CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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