#8A21A1#8A21A1

#8A21A1 is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.6% C 0.201 H 319.5°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A21A1
RGBrgb(138, 33, 161)
HSLhsl(289, 66%, 38%)
HSVhsv(289, 80%, 63%)
CMYKcmyk(14.3%, 79.5%, 0%, 36.9%)
CIE-LABlab(36.11, 59.61, -46.56)
CIE-LCHlch(36.11, 75.64, 322.01°)
OKLaboklab(47.58% 0.1531 -0.1308)
OKLCHoklch(47.58% 0.201 319.5)
XYZxyz(17.4573, 9.0651, 34.5415)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21A1 #38A121
analogous
#4A21A1 #8A21A1 #A12178
triadic
#8A21A1 #A18A21 #21A18A
tetradic
#8A21A1 #A14A21 #38A121 #2178A1
square
#8A21A1 #A14A21 #38A121 #2178A1
split-complementary
#8A21A1 #78A121 #21A14A
monochromatic
#330C3B #5E176E #8A21A1 #B52CD4 #C75EDE

Accessibility & contrast

On white

7.47
#8A21A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A21A1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21A1#FFFFFF#000000##FFFFFF
##8A21A11.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a21a1;
/* rgb */ color: rgb(138, 33, 161);
/* oklch */ color: oklch(47.6% 0.201 319.5);
Tailwind
colors: {
  custom: {
    50: '#b06abd',
    500: '#8a21a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a21a1;
$custom-light: #b06abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21a1",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 161
  },
  "hsl": {
    "h": 289.219,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47578,
    "c": 0.20134,
    "h": 319.5
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#8A21A1
secondary
#6EC35B
accent
#E93F5D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A21A1

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

Preview Lab → · Contrast checker → · Palette generator →

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