#8A21A0#8A21A0

#8A21A0 is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.5% C 0.201 H 319.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8A21A0
RGBrgb(138, 33, 160)
HSLhsl(290, 66%, 38%)
HSVhsv(290, 79%, 63%)
CMYKcmyk(13.8%, 79.4%, 0%, 37.3%)
CIE-LABlab(36.04, 59.42, -46.06)
CIE-LCHlch(36.04, 75.18, 322.22°)
OKLaboklab(47.51% 0.1532 -0.1293)
OKLCHoklch(47.51% 0.201 319.8)
XYZxyz(17.3695, 9.0300, 34.0789)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A0 #37A021
analogous
#4A21A0 #8A21A0 #A02177
triadic
#8A21A0 #A08A21 #21A08A
tetradic
#8A21A0 #A04A21 #37A021 #2177A0
square
#8A21A0 #A04A21 #37A021 #2177A0
split-complementary
#8A21A0 #77A021 #21A04A
monochromatic
#320C3B #5E176D #8A21A0 #B62BD3 #C85EDE

Accessibility & contrast

On white

7.48
#8A21A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A21A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21A0
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A0#FFFFFF#000000##FFFFFF
##8A21A01.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#2D589D
Tritanopia (blue-blind)
#8A3D61
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a21a0;
/* rgb */ color: rgb(138, 33, 160);
/* oklch */ color: oklch(47.5% 0.201 319.8);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a21a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a0;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a0",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 289.606,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47509,
    "c": 0.2005,
    "h": 319.8
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#8A21A0
secondary
#6DC25B
accent
#E93F5C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A0

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

Preview Lab → · Contrast checker → · Palette generator →

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