#841B7F#841B7F

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

Color values

HEX#841B7F
RGBrgb(132, 27, 127)
HSLhsl(303, 66%, 31%)
HSVhsv(303, 80%, 52%)
CMYKcmyk(0%, 79.5%, 3.8%, 48.2%)
CIE-LABlab(32.31, 54.18, -31.79)
CIE-LCHlch(32.31, 62.82, 329.59°)
OKLaboklab(44% 0.1537 -0.0878)
OKLCHoklch(44% 0.177 330.2)
XYZxyz(13.7384, 7.2228, 20.7451)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B7F #1B8420
analogous
#541B84 #841B7F #841B4A
triadic
#841B7F #7F841B #1B7F84
tetradic
#841B7F #84541B #1B8420 #1B4A84
square
#841B7F #84541B #1B8420 #1B4A84
split-complementary
#841B7F #4A841B #1B8454
monochromatic
#1E061D #51114E #841B7F #B725B0 #D841D1

Accessibility & contrast

On white

8.59
#841B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#841B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841B7F
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B7F#FFFFFF#000000##FFFFFF
##841B7F1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4382
Deuteranopia (green-blind)
#3C517D
Tritanopia (blue-blind)
#892A4C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #841b7f;
/* rgb */ color: rgb(132, 27, 127);
/* oklch */ color: oklch(44.0% 0.177 330.2);
Tailwind
colors: {
  custom: {
    50: '#ab65a4',
    500: '#841b7f',
    950: '#000000',
  },
}
SCSS
$custom: #841b7f;
$custom-light: #ab65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#841b7f",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 302.857,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43996,
    "c": 0.17699,
    "h": 330.2
  },
  "luminance": 0.07222
}

Semantic roles & 50–950 ramp

primary
#841B7F
secondary
#43B749
accent
#E9473F
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #841B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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