#8A217C#8A217C

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

Color values

HEX#8A217C
RGBrgb(138, 33, 124)
HSLhsl(308, 61%, 34%)
HSVhsv(308, 76%, 54%)
CMYKcmyk(0%, 76.1%, 10.1%, 45.9%)
CIE-LABlab(33.87, 53.19, -27.37)
CIE-LCHlch(33.87, 59.82, 332.77°)
OKLaboklab(45.27% 0.1545 -0.075)
OKLCHoklch(45.27% 0.172 334.1)
XYZxyz(14.6633, 7.9475, 19.8266)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A217C #218A2F
analogous
#63218A #8A217C #8A2147
triadic
#8A217C #7C8A21 #217C8A
tetradic
#8A217C #8A6321 #218A2F #21478A
square
#8A217C #8A6321 #218A2F #21478A
split-complementary
#8A217C #478A21 #218A63
monochromatic
#270923 #591550 #8A217C #BB2DA8 #D550C3

Accessibility & contrast

On white

8.11
#8A217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A217C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A217C#FFFFFF#000000##FFFFFF
##8A217C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467E
Deuteranopia (green-blind)
#46557A
Tritanopia (blue-blind)
#912B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a217c;
/* rgb */ color: rgb(138, 33, 124);
/* oklch */ color: oklch(45.3% 0.172 334.1);
Tailwind
colors: {
  custom: {
    50: '#b068a2',
    500: '#8a217c',
    950: '#000000',
  },
}
SCSS
$custom: #8a217c;
$custom-light: #b068a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a217c",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 308,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45267,
    "c": 0.1717,
    "h": 334.1
  },
  "luminance": 0.07946
}

Semantic roles & 50–950 ramp

primary
#8A217C
secondary
#4EB95C
accent
#E55943
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A217C

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

Preview Lab → · Contrast checker → · Palette generator →

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