#8C2181#8C2181

#8C2181 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.177 H 332.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8C2181
RGBrgb(140, 33, 129)
HSLhsl(306, 62%, 34%)
HSVhsv(306, 76%, 55%)
CMYKcmyk(0%, 76.4%, 7.9%, 45.1%)
CIE-LABlab(34.50, 54.46, -29.49)
CIE-LCHlch(34.50, 61.93, 331.56°)
OKLaboklab(45.87% 0.1569 -0.081)
OKLCHoklch(45.87% 0.177 332.7)
XYZxyz(15.3216, 8.2494, 21.5500)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2181 #218C2C
analogous
#62218C #8C2181 #8C214C
triadic
#8C2181 #818C21 #21818C
tetradic
#8C2181 #8C6221 #218C2C #214C8C
square
#8C2181 #8C6221 #218C2C #214C8C
split-complementary
#8C2181 #4C8C21 #218C62
monochromatic
#290A26 #5A1553 #8C2181 #BE2DAF #D651C8

Accessibility & contrast

On white

7.93
#8C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2181
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2181#FFFFFF#000000##FFFFFF
##8C21811.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4784
Deuteranopia (green-blind)
#45567E
Tritanopia (blue-blind)
#922D4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c2181;
/* rgb */ color: rgb(140, 33, 129);
/* oklch */ color: oklch(45.9% 0.177 332.7);
Tailwind
colors: {
  custom: {
    50: '#b169a6',
    500: '#8c2181',
    950: '#000000',
  },
}
SCSS
$custom: #8c2181;
$custom-light: #b169a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2181",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 306.168,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.17656,
    "h": 332.7
  },
  "luminance": 0.08248
}

Semantic roles & 50–950 ramp

primary
#8C2181
secondary
#4FB95A
accent
#E55443
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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