#8B217F#8B217F

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

Color values

HEX#8B217F
RGBrgb(139, 33, 127)
HSLhsl(307, 62%, 34%)
HSVhsv(307, 76%, 55%)
CMYKcmyk(0%, 76.3%, 8.6%, 45.5%)
CIE-LABlab(34.21, 53.91, -28.70)
CIE-LCHlch(34.21, 61.07, 331.97°)
OKLaboklab(45.6% 0.1557 -0.0788)
OKLCHoklch(45.6% 0.175 333.2)
XYZxyz(15.0222, 8.1103, 20.8488)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B217F #218B2D
analogous
#62218B #8B217F #8B214A
triadic
#8B217F #7F8B21 #217F8B
tetradic
#8B217F #8B6221 #218B2D #214A8B
square
#8B217F #8B6221 #218B2D #214A8B
split-complementary
#8B217F #4A8B21 #218B62
monochromatic
#280A25 #5A1552 #8B217F #BC2DAC #D651C7

Accessibility & contrast

On white

8.01
#8B217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B217F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B217F#FFFFFF#000000##FFFFFF
##8B217F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4782
Deuteranopia (green-blind)
#45567C
Tritanopia (blue-blind)
#912C4E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b217f;
/* rgb */ color: rgb(139, 33, 127);
/* oklch */ color: oklch(45.6% 0.174 333.2);
Tailwind
colors: {
  custom: {
    50: '#b068a4',
    500: '#8b217f',
    950: '#000000',
  },
}
SCSS
$custom: #8b217f;
$custom-light: #b068a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b217f",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 306.792,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45596,
    "c": 0.1745,
    "h": 333.2
  },
  "luminance": 0.08109
}

Semantic roles & 50–950 ramp

primary
#8B217F
secondary
#4FB95B
accent
#E55543
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B217F

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

Preview Lab → · Contrast checker → · Palette generator →

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