#8A20A1#8A20A1

#8A20A1 is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.5% C 0.202 H 319.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8A20A1
RGBrgb(138, 32, 161)
HSLhsl(289, 67%, 38%)
HSVhsv(289, 80%, 63%)
CMYKcmyk(14.3%, 80.1%, 0%, 36.9%)
CIE-LABlab(36.00, 59.91, -46.73)
CIE-LCHlch(36.00, 75.98, 322.05°)
OKLaboklab(47.5% 0.1538 -0.1313)
OKLCHoklch(47.5% 0.202 319.5)
XYZxyz(17.4299, 9.0104, 34.5324)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20A1 #37A120
analogous
#4920A1 #8A20A1 #A12078
triadic
#8A20A1 #A18A20 #20A18A
tetradic
#8A20A1 #A14920 #37A120 #2078A1
square
#8A20A1 #A14920 #37A120 #2078A1
split-complementary
#8A20A1 #78A120 #20A149
monochromatic
#320C3B #5E166E #8A20A1 #B62AD4 #C85DDF

Accessibility & contrast

On white

7.49
#8A20A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A20A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A20A1
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20A1#FFFFFF#000000##FFFFFF
##8A20A11.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a20a1;
/* rgb */ color: rgb(138, 32, 161);
/* oklch */ color: oklch(47.5% 0.202 319.5);
Tailwind
colors: {
  custom: {
    50: '#b069bd',
    500: '#8a20a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a20a1;
$custom-light: #b069bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20a1",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 161
  },
  "hsl": {
    "h": 289.302,
    "s": 66.839,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47504,
    "c": 0.20225,
    "h": 319.5
  },
  "luminance": 0.0901
}

Semantic roles & 50–950 ramp

primary
#8A20A1
secondary
#6DC35A
accent
#EA3E5D
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A20A1

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

Preview Lab → · Contrast checker → · Palette generator →

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