#841B7E#841B7E

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

Color values

HEX#841B7E
RGBrgb(132, 27, 126)
HSLhsl(303, 66%, 31%)
HSVhsv(303, 80%, 52%)
CMYKcmyk(0%, 79.5%, 4.5%, 48.2%)
CIE-LABlab(32.25, 54.01, -31.26)
CIE-LCHlch(32.25, 62.40, 329.94°)
OKLaboklab(43.94% 0.1537 -0.0863)
OKLCHoklch(43.94% 0.176 330.7)
XYZxyz(13.6735, 7.1969, 20.4036)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B7E #1B8421
analogous
#551B84 #841B7E #841B49
triadic
#841B7E #7E841B #1B7E84
tetradic
#841B7E #84551B #1B8421 #1B4984
square
#841B7E #84551B #1B8421 #1B4984
split-complementary
#841B7E #49841B #1B8455
monochromatic
#1E061D #51114D #841B7E #B725AE #D841D0

Accessibility & contrast

On white

8.61
#841B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #841B7E
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B7E#FFFFFF#000000##FFFFFF
##841B7E1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #841b7e;
/* rgb */ color: rgb(132, 27, 126);
/* oklch */ color: oklch(43.9% 0.176 330.7);
Tailwind
colors: {
  custom: {
    50: '#ab65a4',
    500: '#841b7e',
    950: '#000000',
  },
}
SCSS
$custom: #841b7e;
$custom-light: #ab65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#841b7e",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 303.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43936,
    "c": 0.17622,
    "h": 330.7
  },
  "luminance": 0.07196
}

Semantic roles & 50–950 ramp

primary
#841B7E
secondary
#43B74A
accent
#E9493F
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #841B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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