#8B2DC2#8B2DC2

#8B2DC2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.1% C 0.219 H 309.2°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8B2DC2
RGBrgb(139, 45, 194)
HSLhsl(278, 62%, 47%)
HSVhsv(278, 77%, 76%)
CMYKcmyk(28.4%, 76.8%, 0%, 23.9%)
CIE-LABlab(40.02, 62.35, -59.83)
CIE-LCHlch(40.02, 86.41, 316.18°)
OKLaboklab(51.1% 0.1385 -0.1698)
OKLCHoklch(51.1% 0.219 309.2)
XYZxyz(21.3215, 11.2612, 52.0789)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2DC2 #64C22D
analogous
#402DC2 #8B2DC2 #C22DAF
triadic
#8B2DC2 #C28B2D #2DC28B
tetradic
#8B2DC2 #C2402D #64C22D #2DAFC2
square
#8B2DC2 #C2402D #64C22D #2DAFC2
split-complementary
#8B2DC2 #AFC22D #2DC240
monochromatic
#44165F #672190 #8B2DC2 #A755D7 #C186E3

Accessibility & contrast

On white

6.46
#8B2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8B2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2DC2
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2DC2#FFFFFF#000000##FFFFFF
##8B2DC21.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005FBF
Tritanopia (blue-blind)
#835277
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b2dc2;
/* rgb */ color: rgb(139, 45, 194);
/* oklch */ color: oklch(51.1% 0.219 309.2);
Tailwind
colors: {
  custom: {
    50: '#b270d5',
    500: '#8b2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2dc2;
$custom-light: #b270d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2dc2",
  "rgb": {
    "r": 139,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 277.852,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51102,
    "c": 0.21913,
    "h": 309.2
  },
  "luminance": 0.11261
}

Semantic roles & 50–950 ramp

primary
#8B2DC2
secondary
#9BCD7E
accent
#E5427F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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