#8B2ABC#8B2ABC

#8B2ABC is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.217 H 311.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#8B2ABC
RGBrgb(139, 42, 188)
HSLhsl(280, 63%, 45%)
HSVhsv(280, 78%, 74%)
CMYKcmyk(26.1%, 77.7%, 0%, 26.3%)
CIE-LABlab(39.20, 62.16, -57.63)
CIE-LCHlch(39.20, 84.77, 317.17°)
OKLaboklab(50.39% 0.1422 -0.1633)
OKLCHoklch(50.39% 0.217 311.1)
XYZxyz(20.5508, 10.7763, 48.5646)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2ABC #5BBC2A
analogous
#422ABC #8B2ABC #BC2AA4
triadic
#8B2ABC #BC8B2A #2ABC8B
tetradic
#8B2ABC #BC422A #5BBC2A #2AA4BC
square
#8B2ABC #BC422A #5BBC2A #2AA4BC
split-complementary
#8B2ABC #A4BC2A #2ABC42
monochromatic
#411458 #661F8A #8B2ABC #A84CD7 #C17EE2

Accessibility & contrast

On white

6.66
#8B2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8B2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2ABC
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2ABC#FFFFFF#000000##FFFFFF
##8B2ABC1.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#844E73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2abc;
/* rgb */ color: rgb(139, 42, 188);
/* oklch */ color: oklch(50.4% 0.217 311.1);
Tailwind
colors: {
  custom: {
    50: '#b26fd1',
    500: '#8b2abc',
    950: '#000000',
  },
}
SCSS
$custom: #8b2abc;
$custom-light: #b26fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2abc",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 279.863,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50389,
    "c": 0.21661,
    "h": 311.1
  },
  "luminance": 0.10776
}

Semantic roles & 50–950 ramp

primary
#8B2ABC
secondary
#93CB77
accent
#E74179
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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