#8A20A8#8A20A8

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

Color values

HEX#8A20A8
RGBrgb(138, 32, 168)
HSLhsl(287, 68%, 39%)
HSVhsv(287, 81%, 66%)
CMYKcmyk(17.9%, 81%, 0%, 34.1%)
CIE-LABlab(36.49, 61.23, -50.16)
CIE-LCHlch(36.49, 79.15, 320.68°)
OKLaboklab(48% 0.1528 -0.1414)
OKLCHoklch(48% 0.208 317.2)
XYZxyz(18.0646, 9.2643, 37.8748)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20A8 #3EA820
analogous
#4620A8 #8A20A8 #A82082
triadic
#8A20A8 #A88A20 #20A88A
tetradic
#8A20A8 #A84620 #3EA820 #2082A8
square
#8A20A8 #A84620 #3EA820 #2082A8
split-complementary
#8A20A8 #82A820 #20A846
monochromatic
#360C41 #601675 #8A20A8 #B22ED7 #C561E1

Accessibility & contrast

On white

7.36
#8A20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A20A8
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20A8#FFFFFF#000000##FFFFFF
##8A20A81.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.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: #8a20a8;
/* rgb */ color: rgb(138, 32, 168);
/* oklch */ color: oklch(48.0% 0.208 317.2);
Tailwind
colors: {
  custom: {
    50: '#b16ac3',
    500: '#8a20a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a20a8;
$custom-light: #b16ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20a8",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 286.765,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.20812,
    "h": 317.2
  },
  "luminance": 0.09263
}

Semantic roles & 50–950 ramp

primary
#8A20A8
secondary
#75C65E
accent
#EB3D63
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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