#8A21A7#8A21A7

#8A21A7 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.0% C 0.206 H 317.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8A21A7
RGBrgb(138, 33, 167)
HSLhsl(287, 67%, 39%)
HSVhsv(287, 80%, 65%)
CMYKcmyk(17.4%, 80.2%, 0%, 34.5%)
CIE-LABlab(36.52, 60.74, -49.51)
CIE-LCHlch(36.52, 78.36, 320.82°)
OKLaboklab(48% 0.1522 -0.1394)
OKLCHoklch(48% 0.206 317.5)
XYZxyz(17.9991, 9.2818, 37.3952)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A7 #3EA721
analogous
#4721A7 #8A21A7 #A72181
triadic
#8A21A7 #A78A21 #21A78A
tetradic
#8A21A7 #A74721 #3EA721 #2181A7
square
#8A21A7 #A74721 #3EA721 #2181A7
split-complementary
#8A21A7 #81A721 #21A747
monochromatic
#360D41 #601774 #8A21A7 #B22FD6 #C562E0

Accessibility & contrast

On white

7.35
#8A21A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A21A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21A7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A7#FFFFFF#000000##FFFFFF
##8A21A71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#2559A4
Tritanopia (blue-blind)
#894065
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a21a7;
/* rgb */ color: rgb(138, 33, 167);
/* oklch */ color: oklch(48.0% 0.206 317.5);
Tailwind
colors: {
  custom: {
    50: '#b06ac2',
    500: '#8a21a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a7;
$custom-light: #b06ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a7",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 287.015,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.20639,
    "h": 317.5
  },
  "luminance": 0.09281
}

Semantic roles & 50–950 ramp

primary
#8A21A7
secondary
#75C55F
accent
#EA3E63
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A7

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

Preview Lab → · Contrast checker → · Palette generator →

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