#8A217D#8A217D

#8A217D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.172 H 333.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#8A217D
RGBrgb(138, 33, 125)
HSLhsl(307, 61%, 34%)
HSVhsv(307, 76%, 54%)
CMYKcmyk(0%, 76.1%, 9.4%, 45.9%)
CIE-LABlab(33.93, 53.35, -27.91)
CIE-LCHlch(33.93, 60.21, 332.38°)
OKLaboklab(45.32% 0.1545 -0.0765)
OKLCHoklch(45.32% 0.172 333.7)
XYZxyz(14.7269, 7.9729, 20.1614)
Luminance0.0797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A217D #218A2E
analogous
#62218A #8A217D #8A2148
triadic
#8A217D #7D8A21 #217D8A
tetradic
#8A217D #8A6221 #218A2E #21488A
square
#8A217D #8A6221 #218A2E #21488A
split-complementary
#8A217D #488A21 #218A62
monochromatic
#270924 #591550 #8A217D #BB2DAA #D550C5

Accessibility & contrast

On white

8.09
#8A217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8A217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A217D
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A217D#FFFFFF#000000##FFFFFF
##8A217D1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#45557B
Tritanopia (blue-blind)
#912B4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a217d;
/* rgb */ color: rgb(138, 33, 125);
/* oklch */ color: oklch(45.3% 0.172 333.7);
Tailwind
colors: {
  custom: {
    50: '#b068a3',
    500: '#8a217d',
    950: '#000000',
  },
}
SCSS
$custom: #8a217d;
$custom-light: #b068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a217d",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 307.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.17244,
    "h": 333.7
  },
  "luminance": 0.07972
}

Semantic roles & 50–950 ramp

primary
#8A217D
secondary
#4EB95B
accent
#E55743
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A217D

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

Preview Lab → · Contrast checker → · Palette generator →

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