#8B217B#8B217B

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

Color values

HEX#8B217B
RGBrgb(139, 33, 123)
HSLhsl(309, 62%, 34%)
HSVhsv(309, 76%, 55%)
CMYKcmyk(0%, 76.3%, 11.5%, 45.5%)
CIE-LABlab(34.00, 53.28, -26.53)
CIE-LCHlch(34.00, 59.52, 333.53°)
OKLaboklab(45.38% 0.1554 -0.0725)
OKLCHoklch(45.38% 0.172 335)
XYZxyz(14.7667, 8.0081, 19.5031)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217B #218B31
analogous
#66218B #8B217B #8B2146
triadic
#8B217B #7B8B21 #217B8B
tetradic
#8B217B #8B6621 #218B31 #21468B
square
#8B217B #8B6621 #218B31 #21468B
split-complementary
#8B217B #468B21 #218B66
monochromatic
#280A23 #5A154F #8B217B #BC2DA7 #D651C2

Accessibility & contrast

On white

8.07
#8B217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B217B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B217B#FFFFFF#000000##FFFFFF
##8B217B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b217b;
/* rgb */ color: rgb(139, 33, 123);
/* oklch */ color: oklch(45.4% 0.172 335.0);
Tailwind
colors: {
  custom: {
    50: '#b068a1',
    500: '#8b217b',
    950: '#000000',
  },
}
SCSS
$custom: #8b217b;
$custom-light: #b068a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217b",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 309.057,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45375,
    "c": 0.17153,
    "h": 335
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#8B217B
secondary
#4FB95F
accent
#E55B43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B217B

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

Preview Lab → · Contrast checker → · Palette generator →

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