#8A21A6#8A21A6

#8A21A6 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.206 H 317.8°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8A21A6
RGBrgb(138, 33, 166)
HSLhsl(287, 67%, 39%)
HSVhsv(287, 80%, 65%)
CMYKcmyk(16.9%, 80.1%, 0%, 34.9%)
CIE-LABlab(36.45, 60.55, -49.02)
CIE-LCHlch(36.45, 77.91, 321.01°)
OKLaboklab(47.93% 0.1523 -0.138)
OKLCHoklch(47.93% 0.206 317.8)
XYZxyz(17.9070, 9.2450, 36.9102)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A6 #3DA621
analogous
#4721A6 #8A21A6 #A62180
triadic
#8A21A6 #A68A21 #21A68A
tetradic
#8A21A6 #A64721 #3DA621 #2180A6
square
#8A21A6 #A64721 #3DA621 #2180A6
split-complementary
#8A21A6 #80A621 #21A647
monochromatic
#350D40 #601773 #8A21A6 #B22FD6 #C562E0

Accessibility & contrast

On white

7.37
#8A21A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A21A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21A6
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A6#FFFFFF#000000##FFFFFF
##8A21A61.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#2659A3
Tritanopia (blue-blind)
#894064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a21a6;
/* rgb */ color: rgb(138, 33, 166);
/* oklch */ color: oklch(47.9% 0.206 317.8);
Tailwind
colors: {
  custom: {
    50: '#b06ac1',
    500: '#8a21a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a6;
$custom-light: #b06ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a6",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 287.368,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47928,
    "c": 0.20554,
    "h": 317.8
  },
  "luminance": 0.09244
}

Semantic roles & 50–950 ramp

primary
#8A21A6
secondary
#74C55E
accent
#EA3E62
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A6

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

Preview Lab → · Contrast checker → · Palette generator →

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