#8C2DCC#8C2DCC

#8C2DCC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 52.0% C 0.229 H 307.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8C2DCC
RGBrgb(140, 45, 204)
HSLhsl(276, 64%, 49%)
HSVhsv(276, 78%, 80%)
CMYKcmyk(31.4%, 77.9%, 0%, 20%)
CIE-LABlab(40.92, 64.66, -64.18)
CIE-LCHlch(40.92, 91.11, 315.21°)
OKLaboklab(52% 0.1376 -0.1826)
OKLCHoklch(52% 0.229 307)
XYZxyz(22.6503, 11.8121, 58.2018)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DCC #6DCC2D
analogous
#3D2DCC #8C2DCC #CC2DBD
triadic
#8C2DCC #CC8C2D #2DCC8C
tetradic
#8C2DCC #CC3D2D #6DCC2D #2DBDCC
square
#8C2DCC #CC3D2D #6DCC2D #2DBDCC
split-complementary
#8C2DCC #BDCC2D #2DCC3D
monochromatic
#471768 #6A229A #8C2DCC #A85BDB #C28DE6

Accessibility & contrast

On white

6.25
#8C2DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8C2DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2DCC
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DCC#FFFFFF#000000##FFFFFF
##8C2DCC1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#81567C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c2dcc;
/* rgb */ color: rgb(140, 45, 204);
/* oklch */ color: oklch(52.0% 0.229 307.0);
Tailwind
colors: {
  custom: {
    50: '#b371dd',
    500: '#8c2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #8c2dcc;
$custom-light: #b371dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2dcc",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 275.849,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51999,
    "c": 0.22864,
    "h": 307
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

primary
#8C2DCC
secondary
#A3D085
accent
#E74184
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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