#8A20A7#8A20A7

#8A20A7 is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.9% C 0.207 H 317.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A20A7
RGBrgb(138, 32, 167)
HSLhsl(287, 68%, 39%)
HSVhsv(287, 81%, 65%)
CMYKcmyk(17.4%, 80.8%, 0%, 34.5%)
CIE-LABlab(36.42, 61.04, -49.67)
CIE-LCHlch(36.42, 78.70, 320.86°)
OKLaboklab(47.93% 0.1529 -0.1399)
OKLCHoklch(47.93% 0.207 317.5)
XYZxyz(17.9718, 9.2271, 37.3861)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20A7 #3DA720
analogous
#4720A7 #8A20A7 #A72081
triadic
#8A20A7 #A78A20 #20A78A
tetradic
#8A20A7 #A74720 #3DA720 #2081A7
square
#8A20A7 #A74720 #3DA720 #2081A7
split-complementary
#8A20A7 #81A720 #20A747
monochromatic
#350C40 #601674 #8A20A7 #B22DD7 #C561E1

Accessibility & contrast

On white

7.38
#8A20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A20A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A20A7
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20A7#FFFFFF#000000##FFFFFF
##8A20A71.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#2459A4
Tritanopia (blue-blind)
#894064
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a20a7;
/* rgb */ color: rgb(138, 32, 167);
/* oklch */ color: oklch(47.9% 0.207 317.5);
Tailwind
colors: {
  custom: {
    50: '#b06ac2',
    500: '#8a20a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a20a7;
$custom-light: #b06ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20a7",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 287.111,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.20728,
    "h": 317.5
  },
  "luminance": 0.09226
}

Semantic roles & 50–950 ramp

primary
#8A20A7
secondary
#74C55D
accent
#EB3D62
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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