#8A217B#8A217B

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

Color values

HEX#8A217B
RGBrgb(138, 33, 123)
HSLhsl(309, 61%, 34%)
HSVhsv(309, 76%, 54%)
CMYKcmyk(0%, 76.1%, 10.9%, 45.9%)
CIE-LABlab(33.82, 53.04, -26.83)
CIE-LCHlch(33.82, 59.44, 333.17°)
OKLaboklab(45.21% 0.1544 -0.0734)
OKLCHoklch(45.21% 0.171 334.6)
XYZxyz(14.6004, 7.9223, 19.4953)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A217B #218A30
analogous
#64218A #8A217B #8A2146
triadic
#8A217B #7B8A21 #217B8A
tetradic
#8A217B #8A6421 #218A30 #21468A
square
#8A217B #8A6421 #218A30 #21468A
split-complementary
#8A217B #468A21 #218A64
monochromatic
#270923 #59154F #8A217B #BB2DA7 #D550C2

Accessibility & contrast

On white

8.13
#8A217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A217B
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A217B#FFFFFF#000000##FFFFFF
##8A217B1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467D
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#912A4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a217b;
/* rgb */ color: rgb(138, 33, 123);
/* oklch */ color: oklch(45.2% 0.171 334.6);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8a217b',
    950: '#000000',
  },
}
SCSS
$custom: #8a217b;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a217b",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 308.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45212,
    "c": 0.17095,
    "h": 334.6
  },
  "luminance": 0.07921
}

Semantic roles & 50–950 ramp

primary
#8A217B
secondary
#4EB95D
accent
#E55A43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A217B

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

Preview Lab → · Contrast checker → · Palette generator →

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