#8B217C#8B217C

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

Color values

HEX#8B217C
RGBrgb(139, 33, 124)
HSLhsl(308, 62%, 34%)
HSVhsv(308, 76%, 55%)
CMYKcmyk(0%, 76.3%, 10.8%, 45.5%)
CIE-LABlab(34.05, 53.43, -27.08)
CIE-LCHlch(34.05, 59.90, 333.13°)
OKLaboklab(45.43% 0.1555 -0.0741)
OKLCHoklch(45.43% 0.172 334.5)
XYZxyz(14.8296, 8.0332, 19.8344)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217C #218B30
analogous
#65218B #8B217C #8B2147
triadic
#8B217C #7C8B21 #217C8B
tetradic
#8B217C #8B6521 #218B30 #21478B
square
#8B217C #8B6521 #218B30 #21478B
split-complementary
#8B217C #478B21 #218B65
monochromatic
#280A24 #5A1550 #8B217C #BC2DA8 #D651C3

Accessibility & contrast

On white

8.06
#8B217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B217C
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B217C#FFFFFF#000000##FFFFFF
##8B217C1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F467E
Deuteranopia (green-blind)
#465679
Tritanopia (blue-blind)
#922B4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b217c;
/* rgb */ color: rgb(139, 33, 124);
/* oklch */ color: oklch(45.4% 0.172 334.5);
Tailwind
colors: {
  custom: {
    50: '#b068a2',
    500: '#8b217c',
    950: '#000000',
  },
}
SCSS
$custom: #8b217c;
$custom-light: #b068a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217c",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 308.491,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45429,
    "c": 0.17226,
    "h": 334.5
  },
  "luminance": 0.08032
}

Semantic roles & 50–950 ramp

primary
#8B217C
secondary
#4FB95E
accent
#E55A43
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B217C

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

Preview Lab → · Contrast checker → · Palette generator →

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