#8A20B3#8A20B3

#8A20B3 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.8% C 0.217 H 313.8°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#8A20B3
RGBrgb(138, 32, 179)
HSLhsl(283, 70%, 41%)
HSVhsv(283, 82%, 70%)
CMYKcmyk(22.9%, 82.1%, 0%, 29.8%)
CIE-LABlab(37.28, 63.37, -55.44)
CIE-LCHlch(37.28, 84.19, 318.82°)
OKLaboklab(48.81% 0.1506 -0.1568)
OKLCHoklch(48.81% 0.217 313.8)
XYZxyz(19.1330, 9.6916, 43.5019)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A20B3 #49B320
analogous
#4120B3 #8A20B3 #B32093
triadic
#8A20B3 #B38A20 #20B38A
tetradic
#8A20B3 #B34120 #49B320 #2093B3
square
#8A20B3 #B34120 #49B320 #2093B3
split-complementary
#8A20B3 #93B320 #20B341
monochromatic
#3A0D4B #62177F #8A20B3 #AD35DB #C269E4

Accessibility & contrast

On white

7.15
#8A20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A20B3
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A20B3#FFFFFF#000000##FFFFFF
##8A20B31.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0A5AB0
Tritanopia (blue-blind)
#86456B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a20b3;
/* rgb */ color: rgb(138, 32, 179);
/* oklch */ color: oklch(48.8% 0.217 313.8);
Tailwind
colors: {
  custom: {
    50: '#b16acb',
    500: '#8a20b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a20b3;
$custom-light: #b16acb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a20b3",
  "rgb": {
    "r": 138,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 283.265,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48805,
    "c": 0.21743,
    "h": 313.8
  },
  "luminance": 0.09691
}

Semantic roles & 50–950 ramp

primary
#8A20B3
secondary
#81CA65
accent
#EC3B6D
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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