#841E87#841E87

#841E87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.7% C 0.180 H 326.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#841E87
RGBrgb(132, 30, 135)
HSLhsl(298, 64%, 32%)
HSVhsv(298, 78%, 53%)
CMYKcmyk(2.2%, 77.8%, 0%, 47.1%)
CIE-LABlab(33.10, 54.61, -35.52)
CIE-LCHlch(33.10, 65.15, 326.96°)
OKLaboklab(44.72% 0.1509 -0.0987)
OKLCHoklch(44.72% 0.18 326.8)
XYZxyz(14.3529, 7.5844, 23.6249)
Luminance0.0758 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841E87 #21871E
analogous
#501E87 #841E87 #871E55
triadic
#841E87 #87841E #1E8784
tetradic
#841E87 #87501E #21871E #1E5587
square
#841E87 #87501E #21871E #1E5587
split-complementary
#841E87 #55871E #1E8750
monochromatic
#220823 #531355 #841E87 #B529B9 #D249D7

Accessibility & contrast

On white

8.34
#841E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#841E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841E87
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841E87#FFFFFF#000000##FFFFFF
##841E871.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#395284
Tritanopia (blue-blind)
#883052
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #841e87;
/* rgb */ color: rgb(132, 30, 135);
/* oklch */ color: oklch(44.7% 0.180 326.8);
Tailwind
colors: {
  custom: {
    50: '#ab66aa',
    500: '#841e87',
    950: '#000000',
  },
}
SCSS
$custom: #841e87;
$custom-light: #ab66aa;
$custom-dark: #000000;
JSON
{
  "hex": "#841e87",
  "rgb": {
    "r": 132,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 298.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44715,
    "c": 0.1803,
    "h": 326.8
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#841E87
secondary
#4BB948
accent
#E74146
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #841E87

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

Preview Lab → · Contrast checker → · Palette generator →

#841E87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva