#8B2ABE#8B2ABE

#8B2ABE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.218 H 310.5°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8B2ABE
RGBrgb(139, 42, 190)
HSLhsl(279, 64%, 45%)
HSVhsv(279, 78%, 75%)
CMYKcmyk(26.8%, 77.9%, 0%, 25.5%)
CIE-LABlab(39.35, 62.58, -58.57)
CIE-LCHlch(39.35, 85.71, 316.90°)
OKLaboklab(50.54% 0.1418 -0.1661)
OKLCHoklch(50.54% 0.218 310.5)
XYZxyz(20.7679, 10.8631, 49.7080)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2ABE #5DBE2A
analogous
#412ABE #8B2ABE #BE2AA7
triadic
#8B2ABE #BE8B2A #2ABE8B
tetradic
#8B2ABE #BE412A #5DBE2A #2AA7BE
square
#8B2ABE #BE412A #5DBE2A #2AA7BE
split-complementary
#8B2ABE #A7BE2A #2ABE41
monochromatic
#42145A #661F8C #8B2ABE #A84DD8 #C180E3

Accessibility & contrast

On white

6.62
#8B2ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8B2ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2ABE
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2ABE#FFFFFF#000000##FFFFFF
##8B2ABE1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#844F74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b2abe;
/* rgb */ color: rgb(139, 42, 190);
/* oklch */ color: oklch(50.5% 0.218 310.5);
Tailwind
colors: {
  custom: {
    50: '#b26fd2',
    500: '#8b2abe',
    950: '#000000',
  },
}
SCSS
$custom: #8b2abe;
$custom-light: #b26fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2abe",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 190
  },
  "hsl": {
    "h": 279.324,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50539,
    "c": 0.21842,
    "h": 310.5
  },
  "luminance": 0.10863
}

Semantic roles & 50–950 ramp

primary
#8B2ABE
secondary
#95CB78
accent
#E7417A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B2ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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