#8A2BBC#8A2BBC

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

Color values

HEX#8A2BBC
RGBrgb(138, 43, 188)
HSLhsl(279, 63%, 45%)
HSVhsv(279, 77%, 74%)
CMYKcmyk(26.6%, 77.1%, 0%, 26.3%)
CIE-LABlab(39.18, 61.63, -57.68)
CIE-LCHlch(39.18, 84.41, 316.90°)
OKLaboklab(50.34% 0.1401 -0.1635)
OKLCHoklch(50.34% 0.215 310.6)
XYZxyz(20.4204, 10.7623, 48.5688)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BBC #5DBC2B
analogous
#412BBC #8A2BBC #BC2BA6
triadic
#8A2BBC #BC8A2B #2BBC8A
tetradic
#8A2BBC #BC412B #5DBC2B #2BA6BC
square
#8A2BBC #BC412B #5DBC2B #2BA6BC
split-complementary
#8A2BBC #A6BC2B #2BBC41
monochromatic
#411458 #65208A #8A2BBC #A74ED6 #C080E2

Accessibility & contrast

On white

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

On black

3.15
#8A2BBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A2BBC#FFFFFF#000000##FFFFFF
##8A2BBC1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2bbc;
/* rgb */ color: rgb(138, 43, 188);
/* oklch */ color: oklch(50.3% 0.215 310.6);
Tailwind
colors: {
  custom: {
    50: '#b16fd1',
    500: '#8a2bbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bbc;
$custom-light: #b16fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bbc",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 188
  },
  "hsl": {
    "h": 279.31,
    "s": 62.771,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50342,
    "c": 0.21532,
    "h": 310.6
  },
  "luminance": 0.10762
}

Semantic roles & 50–950 ramp

primary
#8A2BBC
secondary
#95CB78
accent
#E6427A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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