#8A219E#8A219E

#8A219E is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.199 H 320.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A219E
RGBrgb(138, 33, 158)
HSLhsl(290, 65%, 37%)
HSVhsv(290, 79%, 62%)
CMYKcmyk(12.7%, 79.1%, 0%, 38%)
CIE-LABlab(35.91, 59.05, -45.07)
CIE-LCHlch(35.91, 74.28, 322.65°)
OKLaboklab(47.37% 0.1535 -0.1264)
OKLCHoklch(47.37% 0.199 320.5)
XYZxyz(17.1959, 8.9605, 33.1649)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A219E #359E21
analogous
#4C219E #8A219E #9E2174
triadic
#8A219E #9E8A21 #219E8A
tetradic
#8A219E #9E4C21 #359E21 #21749E
square
#8A219E #9E4C21 #359E21 #21749E
split-complementary
#8A219E #749E21 #219E4C
monochromatic
#320C39 #5E166B #8A219E #B62CD1 #C85CDD

Accessibility & contrast

On white

7.52
#8A219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A219E
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A219E#FFFFFF#000000##FFFFFF
##8A219E1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#2F589B
Tritanopia (blue-blind)
#8B3C5F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a219e;
/* rgb */ color: rgb(138, 33, 158);
/* oklch */ color: oklch(47.4% 0.199 320.5);
Tailwind
colors: {
  custom: {
    50: '#b06abb',
    500: '#8a219e',
    950: '#000000',
  },
}
SCSS
$custom: #8a219e;
$custom-light: #b06abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a219e",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 290.4,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47372,
    "c": 0.19883,
    "h": 320.5
  },
  "luminance": 0.0896
}

Semantic roles & 50–950 ramp

primary
#8A219E
secondary
#6AC159
accent
#E83F5A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A219E

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

Preview Lab → · Contrast checker → · Palette generator →

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