#8A217E#8A217E

#8A217E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.173 H 333.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8A217E
RGBrgb(138, 33, 126)
HSLhsl(307, 61%, 34%)
HSVhsv(307, 76%, 54%)
CMYKcmyk(0%, 76.1%, 8.7%, 45.9%)
CIE-LABlab(33.98, 53.51, -28.46)
CIE-LCHlch(33.98, 60.61, 332.00°)
OKLaboklab(45.38% 0.1546 -0.0781)
OKLCHoklch(45.38% 0.173 333.2)
XYZxyz(14.7911, 7.9986, 20.4995)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A217E #218A2D
analogous
#61218A #8A217E #8A2149
triadic
#8A217E #7E8A21 #217E8A
tetradic
#8A217E #8A6121 #218A2D #21498A
square
#8A217E #8A6121 #218A2D #21498A
split-complementary
#8A217E #498A21 #218A61
monochromatic
#270924 #591551 #8A217E #BB2DAB #D550C6

Accessibility & contrast

On white

8.08
#8A217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8A217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A217E
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A217E#FFFFFF#000000##FFFFFF
##8A217E1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4681
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#902C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a217e;
/* rgb */ color: rgb(138, 33, 126);
/* oklch */ color: oklch(45.4% 0.173 333.2);
Tailwind
colors: {
  custom: {
    50: '#b068a4',
    500: '#8a217e',
    950: '#000000',
  },
}
SCSS
$custom: #8a217e;
$custom-light: #b068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a217e",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 306.857,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.17319,
    "h": 333.2
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#8A217E
secondary
#4EB95A
accent
#E55643
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A217E

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

Preview Lab → · Contrast checker → · Palette generator →

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