#8A21A4#8A21A4

#8A21A4 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.8% C 0.204 H 318.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#8A21A4
RGBrgb(138, 33, 164)
HSLhsl(288, 66%, 39%)
HSVhsv(288, 80%, 64%)
CMYKcmyk(15.9%, 79.9%, 0%, 35.7%)
CIE-LABlab(36.31, 60.17, -48.04)
CIE-LCHlch(36.31, 77.00, 321.40°)
OKLaboklab(47.79% 0.1526 -0.1351)
OKLCHoklch(47.79% 0.204 318.5)
XYZxyz(17.7250, 9.1722, 35.9515)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A4 #3BA421
analogous
#4921A4 #8A21A4 #A4217C
triadic
#8A21A4 #A48A21 #21A48A
tetradic
#8A21A4 #A44921 #3BA421 #217CA4
square
#8A21A4 #A44921 #3BA421 #217CA4
split-complementary
#8A21A4 #7CA421 #21A449
monochromatic
#340C3E #5F1771 #8A21A4 #B42DD5 #C660DF

Accessibility & contrast

On white

7.41
#8A21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21A4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A4#FFFFFF#000000##FFFFFF
##8A21A41.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#2959A1
Tritanopia (blue-blind)
#893F63
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a21a4;
/* rgb */ color: rgb(138, 33, 164);
/* oklch */ color: oklch(47.8% 0.204 318.5);
Tailwind
colors: {
  custom: {
    50: '#b06ac0',
    500: '#8a21a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a4;
$custom-light: #b06ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a4",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 288.092,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47787,
    "c": 0.20385,
    "h": 318.5
  },
  "luminance": 0.09171
}

Semantic roles & 50–950 ramp

primary
#8A21A4
secondary
#71C45D
accent
#E93E60
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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