#8A21BD#8A21BD

#8A21BD is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.6% C 0.225 H 310.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A21BD
RGBrgb(138, 33, 189)
HSLhsl(280, 70%, 44%)
HSVhsv(280, 83%, 74%)
CMYKcmyk(27%, 82.5%, 0%, 25.9%)
CIE-LABlab(38.14, 65.07, -59.96)
CIE-LCHlch(38.14, 88.48, 317.34°)
OKLaboklab(49.64% 0.1475 -0.1701)
OKLCHoklch(49.64% 0.225 310.9)
XYZxyz(20.2086, 10.1656, 49.0318)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21BD #54BD21
analogous
#3C21BD #8A21BD #BD21A2
triadic
#8A21BD #BD8A21 #21BD8A
tetradic
#8A21BD #BD3C21 #54BD21 #21A2BD
square
#8A21BD #BD3C21 #54BD21 #21A2BD
split-complementary
#8A21BD #A2BD21 #21BD3C
monochromatic
#3E0F55 #641889 #8A21BD #A93EDD #C072E6

Accessibility & contrast

On white

6.92
#8A21BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A21BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A21BD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21BD#FFFFFF#000000##FFFFFF
##8A21BD1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#834A71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a21bd;
/* rgb */ color: rgb(138, 33, 189);
/* oklch */ color: oklch(49.6% 0.225 310.9);
Tailwind
colors: {
  custom: {
    50: '#b26bd2',
    500: '#8a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a21bd;
$custom-light: #b26bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21bd",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 280.385,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49639,
    "c": 0.22519,
    "h": 310.9
  },
  "luminance": 0.10165
}

Semantic roles & 50–950 ramp

primary
#8A21BD
secondary
#8CCD6D
accent
#ED3B75
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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