#8A20A9#8A20A9

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

Color values

HEX#8A20A9
RGBrgb(138, 32, 169)
HSLhsl(286, 68%, 39%)
HSVhsv(286, 81%, 66%)
CMYKcmyk(18.3%, 81.1%, 0%, 33.7%)
CIE-LABlab(36.56, 61.42, -50.65)
CIE-LCHlch(36.56, 79.61, 320.49°)
OKLaboklab(48.07% 0.1526 -0.1428)
OKLCHoklch(48.07% 0.209 316.9)
XYZxyz(18.1581, 9.3017, 38.3673)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20A9 #3FA920
analogous
#4520A9 #8A20A9 #A92084
triadic
#8A20A9 #A98A20 #20A98A
tetradic
#8A20A9 #A94520 #3FA920 #2084A9
square
#8A20A9 #A94520 #3FA920 #2084A9
split-complementary
#8A20A9 #84A920 #20A945
monochromatic
#360D42 #601676 #8A20A9 #B12FD8 #C562E1

Accessibility & contrast

On white

7.34
#8A20A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A20A9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20A9#FFFFFF#000000##FFFFFF
##8A20A91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AD
Deuteranopia (green-blind)
#2159A6
Tritanopia (blue-blind)
#884166
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a20a9;
/* rgb */ color: rgb(138, 32, 169);
/* oklch */ color: oklch(48.1% 0.209 316.9);
Tailwind
colors: {
  custom: {
    50: '#b16ac3',
    500: '#8a20a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a20a9;
$custom-light: #b16ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20a9",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 169
  },
  "hsl": {
    "h": 286.423,
    "s": 68.159,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48069,
    "c": 0.20896,
    "h": 316.9
  },
  "luminance": 0.09301
}

Semantic roles & 50–950 ramp

primary
#8A20A9
secondary
#76C65F
accent
#EB3D64
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A20A9

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

Preview Lab → · Contrast checker → · Palette generator →

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