#8A217A#8A217A

#8A217A is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.170 H 335.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#8A217A
RGBrgb(138, 33, 122)
HSLhsl(309, 61%, 34%)
HSVhsv(309, 76%, 54%)
CMYKcmyk(0%, 76.1%, 11.6%, 45.9%)
CIE-LABlab(33.77, 52.88, -26.28)
CIE-LCHlch(33.77, 59.05, 333.57°)
OKLaboklab(45.16% 0.1543 -0.0718)
OKLCHoklch(45.16% 0.17 335)
XYZxyz(14.5381, 7.8974, 19.1673)
Luminance0.0790 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A217A #218A31
analogous
#65218A #8A217A #8A2145
triadic
#8A217A #7A8A21 #217A8A
tetradic
#8A217A #8A6521 #218A31 #21458A
square
#8A217A #8A6521 #218A31 #21458A
split-complementary
#8A217A #458A21 #218A65
monochromatic
#270923 #59154E #8A217A #BB2DA6 #D550C1

Accessibility & contrast

On white

8.14
#8A217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8A217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A217A
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A217A#FFFFFF#000000##FFFFFF
##8A217A1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457C
Deuteranopia (green-blind)
#465578
Tritanopia (blue-blind)
#912A4B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a217a;
/* rgb */ color: rgb(138, 33, 122);
/* oklch */ color: oklch(45.2% 0.170 335.0);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8a217a',
    950: '#000000',
  },
}
SCSS
$custom: #8a217a;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a217a",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 309.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45157,
    "c": 0.17021,
    "h": 335
  },
  "luminance": 0.07896
}

Semantic roles & 50–950 ramp

primary
#8A217A
secondary
#4EB95E
accent
#E55C43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A217A

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

Preview Lab → · Contrast checker → · Palette generator →

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