#8B217D#8B217D

#8B217D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.173 H 334.1°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8B217D
RGBrgb(139, 33, 125)
HSLhsl(308, 62%, 34%)
HSVhsv(308, 76%, 55%)
CMYKcmyk(0%, 76.3%, 10.1%, 45.5%)
CIE-LABlab(34.10, 53.59, -27.62)
CIE-LCHlch(34.10, 60.29, 332.73°)
OKLaboklab(45.49% 0.1556 -0.0757)
OKLCHoklch(45.49% 0.173 334.1)
XYZxyz(14.8931, 8.0586, 20.1692)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217D #218B2F
analogous
#64218B #8B217D #8B2148
triadic
#8B217D #7D8B21 #217D8B
tetradic
#8B217D #8B6421 #218B2F #21488B
square
#8B217D #8B6421 #218B2F #21488B
split-complementary
#8B217D #488B21 #218B64
monochromatic
#280A24 #5A1551 #8B217D #BC2DA9 #D651C4

Accessibility & contrast

On white

8.04
#8B217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8B217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B217D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B217D#FFFFFF#000000##FFFFFF
##8B217D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#922B4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b217d;
/* rgb */ color: rgb(139, 33, 125);
/* oklch */ color: oklch(45.5% 0.173 334.1);
Tailwind
colors: {
  custom: {
    50: '#b068a3',
    500: '#8b217d',
    950: '#000000',
  },
}
SCSS
$custom: #8b217d;
$custom-light: #b068a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217d",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 307.925,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45485,
    "c": 0.17301,
    "h": 334.1
  },
  "luminance": 0.08057
}

Semantic roles & 50–950 ramp

primary
#8B217D
secondary
#4FB95D
accent
#E55843
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B217D

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

Preview Lab → · Contrast checker → · Palette generator →

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