#8B217A#8B217A

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

Color values

HEX#8B217A
RGBrgb(139, 33, 122)
HSLhsl(310, 62%, 34%)
HSVhsv(310, 76%, 55%)
CMYKcmyk(0%, 76.3%, 12.2%, 45.5%)
CIE-LABlab(33.95, 53.12, -25.99)
CIE-LCHlch(33.95, 59.14, 333.93°)
OKLaboklab(45.32% 0.1553 -0.071)
OKLCHoklch(45.32% 0.171 335.4)
XYZxyz(14.7044, 7.9831, 19.1751)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217A #218B32
analogous
#67218B #8B217A #8B2145
triadic
#8B217A #7A8B21 #217A8B
tetradic
#8B217A #8B6721 #218B32 #21458B
square
#8B217A #8B6721 #218B32 #21458B
split-complementary
#8B217A #458B21 #218B67
monochromatic
#280A23 #5A154F #8B217A #BC2DA5 #D651C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B217A#FFFFFF#000000##FFFFFF
##8B217A1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467C
Deuteranopia (green-blind)
#475578
Tritanopia (blue-blind)
#92294B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b217a;
/* rgb */ color: rgb(139, 33, 122);
/* oklch */ color: oklch(45.3% 0.171 335.4);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8b217a',
    950: '#000000',
  },
}
SCSS
$custom: #8b217a;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217a",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 309.623,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.17079,
    "h": 335.4
  },
  "luminance": 0.07982
}

Semantic roles & 50–950 ramp

primary
#8B217A
secondary
#4FB960
accent
#E55D43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B217A

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

Preview Lab → · Contrast checker → · Palette generator →

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