#8A21B4#8A21B4

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

Color values

HEX#8A21B4
RGBrgb(138, 33, 180)
HSLhsl(283, 69%, 42%)
HSVhsv(283, 82%, 71%)
CMYKcmyk(23.3%, 81.7%, 0%, 29.4%)
CIE-LABlab(37.46, 63.27, -55.75)
CIE-LCHlch(37.46, 84.33, 318.62°)
OKLaboklab(48.95% 0.1497 -0.1578)
OKLCHoklch(48.95% 0.217 313.5)
XYZxyz(19.2619, 9.7869, 44.0456)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A21B4 #4BB421
analogous
#4121B4 #8A21B4 #B42195
triadic
#8A21B4 #B48A21 #21B48A
tetradic
#8A21B4 #B44121 #4BB421 #2195B4
square
#8A21B4 #B44121 #4BB421 #2195B4
split-complementary
#8A21B4 #95B421 #21B441
monochromatic
#3B0E4D #621880 #8A21B4 #AC38DA #C26BE4

Accessibility & contrast

On white

7.10
#8A21B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A21B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A21B4
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A21B4#FFFFFF#000000##FFFFFF
##8A21B41.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a21b4;
/* rgb */ color: rgb(138, 33, 180);
/* oklch */ color: oklch(48.9% 0.217 313.5);
Tailwind
colors: {
  custom: {
    50: '#b16bcb',
    500: '#8a21b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a21b4;
$custom-light: #b16bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a21b4",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 180
  },
  "hsl": {
    "h": 282.857,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4895,
    "c": 0.21745,
    "h": 313.5
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#8A21B4
secondary
#83CA67
accent
#EC3C6E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A21B4

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

Preview Lab → · Contrast checker → · Palette generator →

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