#8A21A8#8A21A8

#8A21A8 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.1% C 0.207 H 317.2°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A21A8
RGBrgb(138, 33, 168)
HSLhsl(287, 67%, 39%)
HSVhsv(287, 80%, 66%)
CMYKcmyk(17.9%, 80.4%, 0%, 34.1%)
CIE-LABlab(36.59, 60.93, -49.99)
CIE-LCHlch(36.59, 78.82, 320.63°)
OKLaboklab(48.07% 0.152 -0.1409)
OKLCHoklch(48.07% 0.207 317.2)
XYZxyz(18.0919, 9.3189, 37.8839)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A8 #3FA821
analogous
#4721A8 #8A21A8 #A82182
triadic
#8A21A8 #A88A21 #21A88A
tetradic
#8A21A8 #A84721 #3FA821 #2182A8
square
#8A21A8 #A84721 #3FA821 #2182A8
split-complementary
#8A21A8 #82A821 #21A847
monochromatic
#360D42 #601775 #8A21A8 #B130D6 #C563E0

Accessibility & contrast

On white

7.33
#8A21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A21A8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A8#FFFFFF#000000##FFFFFF
##8A21A81.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#2359A5
Tritanopia (blue-blind)
#884065
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a21a8;
/* rgb */ color: rgb(138, 33, 168);
/* oklch */ color: oklch(48.1% 0.207 317.2);
Tailwind
colors: {
  custom: {
    50: '#b06ac3',
    500: '#8a21a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a8;
$custom-light: #b06ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a8",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 286.667,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4807,
    "c": 0.20723,
    "h": 317.2
  },
  "luminance": 0.09318
}

Semantic roles & 50–950 ramp

primary
#8A21A8
secondary
#76C55F
accent
#EA3E64
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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