#8B2181#8B2181

#8B2181 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.176 H 332.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8B2181
RGBrgb(139, 33, 129)
HSLhsl(306, 62%, 34%)
HSVhsv(306, 76%, 55%)
CMYKcmyk(0%, 76.3%, 7.2%, 45.5%)
CIE-LABlab(34.32, 54.23, -29.78)
CIE-LCHlch(34.32, 61.87, 331.22°)
OKLaboklab(45.71% 0.1558 -0.0819)
OKLCHoklch(45.71% 0.176 332.3)
XYZxyz(15.1538, 8.1629, 21.5421)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2181 #218B2B
analogous
#60218B #8B2181 #8B214C
triadic
#8B2181 #818B21 #21818B
tetradic
#8B2181 #8B6021 #218B2B #214C8B
square
#8B2181 #8B6021 #218B2B #214C8B
split-complementary
#8B2181 #4C8B21 #218B60
monochromatic
#280A25 #5A1553 #8B2181 #BC2DAF #D651C9

Accessibility & contrast

On white

7.98
#8B2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2181
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2181#FFFFFF#000000##FFFFFF
##8B21811.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4784
Deuteranopia (green-blind)
#44567E
Tritanopia (blue-blind)
#912D4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b2181;
/* rgb */ color: rgb(139, 33, 129);
/* oklch */ color: oklch(45.7% 0.176 332.3);
Tailwind
colors: {
  custom: {
    50: '#b068a6',
    500: '#8b2181',
    950: '#000000',
  },
}
SCSS
$custom: #8b2181;
$custom-light: #b068a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2181",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 305.66,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45709,
    "c": 0.17602,
    "h": 332.3
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#8B2181
secondary
#4FB959
accent
#E55243
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B2181

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

Preview Lab → · Contrast checker → · Palette generator →

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