#8A20B4#8A20B4

#8A20B4 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.9% C 0.218 H 313.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8A20B4
RGBrgb(138, 32, 180)
HSLhsl(283, 70%, 42%)
HSVhsv(283, 82%, 71%)
CMYKcmyk(23.3%, 82.2%, 0%, 29.4%)
CIE-LABlab(37.36, 63.56, -55.91)
CIE-LCHlch(37.36, 84.65, 318.67°)
OKLaboklab(48.88% 0.1504 -0.1582)
OKLCHoklch(48.88% 0.218 313.5)
XYZxyz(19.2345, 9.7322, 44.0365)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20B4 #4AB420
analogous
#4020B4 #8A20B4 #B42094
triadic
#8A20B4 #B48A20 #20B48A
tetradic
#8A20B4 #B44020 #4AB420 #2094B4
square
#8A20B4 #B44020 #4AB420 #2094B4
split-complementary
#8A20B4 #94B420 #20B440
monochromatic
#3A0E4C #621780 #8A20B4 #AC36DB #C26AE4

Accessibility & contrast

On white

7.13
#8A20B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A20B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A20B4
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20B4#FFFFFF#000000##FFFFFF
##8A20B41.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#065AB1
Tritanopia (blue-blind)
#85466C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a20b4;
/* rgb */ color: rgb(138, 32, 180);
/* oklch */ color: oklch(48.9% 0.218 313.5);
Tailwind
colors: {
  custom: {
    50: '#b16acb',
    500: '#8a20b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a20b4;
$custom-light: #b16acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20b4",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 282.973,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48881,
    "c": 0.21828,
    "h": 313.5
  },
  "luminance": 0.09732
}

Semantic roles & 50–950 ramp

primary
#8A20B4
secondary
#82CA66
accent
#ED3B6E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A20B4

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

Preview Lab → · Contrast checker → · Palette generator →

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