#841A7E#841A7E

#841A7E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.177 H 330.7°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#841A7E
RGBrgb(132, 26, 126)
HSLhsl(303, 67%, 31%)
HSVhsv(303, 80%, 52%)
CMYKcmyk(0%, 80.3%, 4.5%, 48.2%)
CIE-LABlab(32.15, 54.30, -31.42)
CIE-LCHlch(32.15, 62.74, 329.95°)
OKLaboklab(43.86% 0.1545 -0.0867)
OKLCHoklch(43.86% 0.177 330.7)
XYZxyz(13.6510, 7.1518, 20.3961)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841A7E #1A8420
analogous
#551A84 #841A7E #841A49
triadic
#841A7E #7E841A #1A7E84
tetradic
#841A7E #84551A #1A8420 #1A4984
square
#841A7E #84551A #1A8420 #1A4984
split-complementary
#841A7E #49841A #1A8455
monochromatic
#1E061C #51104D #841A7E #B724AF #D93FD0

Accessibility & contrast

On white

8.64
#841A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#841A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841A7E
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841A7E#FFFFFF#000000##FFFFFF
##841A7E1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4281
Deuteranopia (green-blind)
#3D517C
Tritanopia (blue-blind)
#89294C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #841a7e;
/* rgb */ color: rgb(132, 26, 126);
/* oklch */ color: oklch(43.9% 0.177 330.7);
Tailwind
colors: {
  custom: {
    50: '#ab65a4',
    500: '#841a7e',
    950: '#000000',
  },
}
SCSS
$custom: #841a7e;
$custom-light: #ab65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#841a7e",
  "rgb": {
    "r": 132,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 303.396,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43864,
    "c": 0.17718,
    "h": 330.7
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#841A7E
secondary
#42B849
accent
#EA483E
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #841A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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