#841B78#841B78

#841B78 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.172 H 333.4°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#841B78
RGBrgb(132, 27, 120)
HSLhsl(307, 66%, 31%)
HSVhsv(307, 80%, 52%)
CMYKcmyk(0%, 79.5%, 9.1%, 48.2%)
CIE-LABlab(31.91, 53.05, -28.02)
CIE-LCHlch(31.91, 59.99, 332.16°)
OKLaboklab(43.59% 0.1535 -0.0769)
OKLCHoklch(43.59% 0.172 333.4)
XYZxyz(13.2979, 7.0466, 18.4254)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B78 #1B8427
analogous
#5B1B84 #841B78 #841B43
triadic
#841B78 #78841B #1B7884
tetradic
#841B78 #845B1B #1B8427 #1B4384
square
#841B78 #845B1B #1B8427 #1B4384
split-complementary
#841B78 #43841B #1B845B
monochromatic
#1E061C #51114A #841B78 #B725A6 #D841C7

Accessibility & contrast

On white

8.72
#841B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#841B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841B78
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B78#FFFFFF#000000##FFFFFF
##841B781.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427A
Deuteranopia (green-blind)
#405076
Tritanopia (blue-blind)
#8A2649
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #841b78;
/* rgb */ color: rgb(132, 27, 120);
/* oklch */ color: oklch(43.6% 0.172 333.4);
Tailwind
colors: {
  custom: {
    50: '#ab659f',
    500: '#841b78',
    950: '#000000',
  },
}
SCSS
$custom: #841b78;
$custom-light: #ab659f;
$custom-dark: #000000;
JSON
{
  "hex": "#841b78",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 306.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43585,
    "c": 0.1717,
    "h": 333.4
  },
  "luminance": 0.07045
}

Semantic roles & 50–950 ramp

primary
#841B78
secondary
#43B751
accent
#E9523F
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #841B78

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

Preview Lab → · Contrast checker → · Palette generator →

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