#8B2DCC#8B2DCC

#8B2DCC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.9% C 0.228 H 306.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8B2DCC
RGBrgb(139, 45, 204)
HSLhsl(275, 64%, 49%)
HSVhsv(275, 78%, 80%)
CMYKcmyk(31.9%, 77.9%, 0%, 20%)
CIE-LABlab(40.78, 64.50, -64.42)
CIE-LCHlch(40.78, 91.15, 315.04°)
OKLaboklab(51.87% 0.1363 -0.1833)
OKLCHoklch(51.87% 0.228 306.6)
XYZxyz(22.4825, 11.7256, 58.1939)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DCC #6ECC2D
analogous
#3C2DCC #8B2DCC #CC2DBE
triadic
#8B2DCC #CC8B2D #2DCC8B
tetradic
#8B2DCC #CC3C2D #6ECC2D #2DBECC
square
#8B2DCC #CC3C2D #6ECC2D #2DBECC
split-complementary
#8B2DCC #BECC2D #2DCC3C
monochromatic
#471768 #69229A #8B2DCC #A75BDB #C28DE6

Accessibility & contrast

On white

6.28
#8B2DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8B2DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DCC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DCC#FFFFFF#000000##FFFFFF
##8B2DCC1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b2dcc;
/* rgb */ color: rgb(139, 45, 204);
/* oklch */ color: oklch(51.9% 0.228 306.6);
Tailwind
colors: {
  custom: {
    50: '#b371dd',
    500: '#8b2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #8b2dcc;
$custom-light: #b371dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2dcc",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 275.472,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51872,
    "c": 0.2284,
    "h": 306.6
  },
  "luminance": 0.11725
}

Semantic roles & 50–950 ramp

primary
#8B2DCC
secondary
#A4D085
accent
#E74185
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8B2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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