#8C2CBD#8C2CBD

#8C2CBD is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.8% C 0.216 H 311.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8C2CBD
RGBrgb(140, 44, 189)
HSLhsl(280, 62%, 46%)
HSVhsv(280, 77%, 74%)
CMYKcmyk(25.9%, 76.7%, 0%, 25.9%)
CIE-LABlab(39.67, 61.84, -57.46)
CIE-LCHlch(39.67, 84.42, 317.10°)
OKLaboklab(50.77% 0.1417 -0.1628)
OKLCHoklch(50.77% 0.216 311)
XYZxyz(20.8994, 11.0515, 49.1664)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CBD #5DBD2C
analogous
#432CBD #8C2CBD #BD2CA5
triadic
#8C2CBD #BD8C2C #2CBD8C
tetradic
#8C2CBD #BD432C #5DBD2C #2CA5BD
square
#8C2CBD #BD432C #5DBD2C #2CA5BD
split-complementary
#8C2CBD #A5BD2C #2CBD43
monochromatic
#42155A #67208B #8C2CBD #A950D6 #C182E2

Accessibility & contrast

On white

6.54
#8C2CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8C2CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2CBD
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2CBD#FFFFFF#000000##FFFFFF
##8C2CBD1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#075FBA
Tritanopia (blue-blind)
#854F74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2cbd;
/* rgb */ color: rgb(140, 44, 189);
/* oklch */ color: oklch(50.8% 0.216 311.0);
Tailwind
colors: {
  custom: {
    50: '#b370d2',
    500: '#8c2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8c2cbd;
$custom-light: #b370d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2cbd",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 279.724,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5077,
    "c": 0.21582,
    "h": 311
  },
  "luminance": 0.11051
}

Semantic roles & 50–950 ramp

primary
#8C2CBD
secondary
#95CB7A
accent
#E5427A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8C2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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