#8B21C2#8B21C2

#8B21C2 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.2% C 0.230 H 310.0°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8B21C2
RGBrgb(139, 33, 194)
HSLhsl(280, 71%, 45%)
HSVhsv(280, 83%, 76%)
CMYKcmyk(28.4%, 83%, 0%, 23.9%)
CIE-LABlab(38.68, 66.24, -62.01)
CIE-LCHlch(38.68, 90.74, 316.89°)
OKLaboklab(50.17% 0.1476 -0.1761)
OKLCHoklch(50.17% 0.23 310)
XYZxyz(20.9270, 10.4722, 51.9474)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B21C2 #58C221
analogous
#3B21C2 #8B21C2 #C221A9
triadic
#8B21C2 #C28B21 #21C28B
tetradic
#8B21C2 #C23B21 #58C221 #21A9C2
square
#8B21C2 #C23B21 #58C221 #21A9C2
split-complementary
#8B21C2 #A9C221 #21C23B
monochromatic
#400F59 #66188E #8B21C2 #A941DF #C176E8

Accessibility & contrast

On white

6.79
#8B21C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8B21C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B21C2
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B21C2#FFFFFF#000000##FFFFFF
##8B21C21.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#834D74
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b21c2;
/* rgb */ color: rgb(139, 33, 194);
/* oklch */ color: oklch(50.2% 0.230 310.0);
Tailwind
colors: {
  custom: {
    50: '#b36cd5',
    500: '#8b21c2',
    950: '#000000',
  },
}
SCSS
$custom: #8b21c2;
$custom-light: #b36cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b21c2",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 279.503,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50165,
    "c": 0.22979,
    "h": 310
  },
  "luminance": 0.10472
}

Semantic roles & 50–950 ramp

primary
#8B21C2
secondary
#90CF70
accent
#EE3A77
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#120814
muted
#817A83

Preview Lab

Preview with #8B21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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