#8A219C#8A219C

#8A219C is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.197 H 321.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8A219C
RGBrgb(138, 33, 156)
HSLhsl(291, 65%, 37%)
HSVhsv(291, 79%, 61%)
CMYKcmyk(11.5%, 78.8%, 0%, 38.8%)
CIE-LABlab(35.78, 58.68, -44.07)
CIE-LCHlch(35.78, 73.39, 323.09°)
OKLaboklab(47.24% 0.1537 -0.1235)
OKLCHoklch(47.24% 0.197 321.2)
XYZxyz(17.0252, 8.8922, 32.2657)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A219C #339C21
analogous
#4D219C #8A219C #9C2170
triadic
#8A219C #9C8A21 #219C8A
tetradic
#8A219C #9C4D21 #339C21 #21709C
square
#8A219C #9C4D21 #339C21 #21709C
split-complementary
#8A219C #709C21 #219C4D
monochromatic
#310C37 #5D1669 #8A219C #B72CCF #C95BDC

Accessibility & contrast

On white

7.56
#8A219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A219C
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A219C#FFFFFF#000000##FFFFFF
##8A219C1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#315899
Tritanopia (blue-blind)
#8B3B5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a219c;
/* rgb */ color: rgb(138, 33, 156);
/* oklch */ color: oklch(47.2% 0.197 321.2);
Tailwind
colors: {
  custom: {
    50: '#b069ba',
    500: '#8a219c',
    950: '#000000',
  },
}
SCSS
$custom: #8a219c;
$custom-light: #b069ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a219c",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 291.22,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47236,
    "c": 0.19716,
    "h": 321.2
  },
  "luminance": 0.08891
}

Semantic roles & 50–950 ramp

primary
#8A219C
secondary
#67C158
accent
#E84058
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A219C

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

Preview Lab → · Contrast checker → · Palette generator →

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