#8B217E#8B217E

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

Color values

HEX#8B217E
RGBrgb(139, 33, 126)
HSLhsl(307, 62%, 34%)
HSVhsv(307, 76%, 55%)
CMYKcmyk(0%, 76.3%, 9.4%, 45.5%)
CIE-LABlab(34.16, 53.75, -28.16)
CIE-LCHlch(34.16, 60.68, 332.35°)
OKLaboklab(45.54% 0.1557 -0.0772)
OKLCHoklch(45.54% 0.174 333.6)
XYZxyz(14.9573, 8.0843, 20.5073)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217E #218B2E
analogous
#63218B #8B217E #8B2149
triadic
#8B217E #7E8B21 #217E8B
tetradic
#8B217E #8B6321 #218B2E #21498B
square
#8B217E #8B6321 #218B2E #21498B
split-complementary
#8B217E #498B21 #218B63
monochromatic
#280A24 #5A1551 #8B217E #BC2DAB #D651C5

Accessibility & contrast

On white

8.03
#8B217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8B217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B217E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B217E#FFFFFF#000000##FFFFFF
##8B217E1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4781
Deuteranopia (green-blind)
#45567B
Tritanopia (blue-blind)
#922C4D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b217e;
/* rgb */ color: rgb(139, 33, 126);
/* oklch */ color: oklch(45.5% 0.174 333.6);
Tailwind
colors: {
  custom: {
    50: '#b068a4',
    500: '#8b217e',
    950: '#000000',
  },
}
SCSS
$custom: #8b217e;
$custom-light: #b068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217e",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 307.358,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.17375,
    "h": 333.6
  },
  "luminance": 0.08083
}

Semantic roles & 50–950 ramp

primary
#8B217E
secondary
#4FB95C
accent
#E55743
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B217E

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

Preview Lab → · Contrast checker → · Palette generator →

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