#841B7C#841B7C

#841B7C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.175 H 331.6°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#841B7C
RGBrgb(132, 27, 124)
HSLhsl(305, 66%, 31%)
HSVhsv(305, 80%, 52%)
CMYKcmyk(0%, 79.5%, 6.1%, 48.2%)
CIE-LABlab(32.14, 53.69, -30.18)
CIE-LCHlch(32.14, 61.59, 330.65°)
OKLaboklab(43.82% 0.1536 -0.0832)
OKLCHoklch(43.82% 0.175 331.6)
XYZxyz(13.5458, 7.1458, 19.7307)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B7C #1B8423
analogous
#571B84 #841B7C #841B47
triadic
#841B7C #7C841B #1B7C84
tetradic
#841B7C #84571B #1B8423 #1B4784
square
#841B7C #84571B #1B8423 #1B4784
split-complementary
#841B7C #47841B #1B8457
monochromatic
#1E061D #51114C #841B7C #B725AC #D841CD

Accessibility & contrast

On white

8.65
#841B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #841B7C
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B7C#FFFFFF#000000##FFFFFF
##841B7C1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427F
Deuteranopia (green-blind)
#3E517A
Tritanopia (blue-blind)
#8A294B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #841b7c;
/* rgb */ color: rgb(132, 27, 124);
/* oklch */ color: oklch(43.8% 0.175 331.6);
Tailwind
colors: {
  custom: {
    50: '#ab65a2',
    500: '#841b7c',
    950: '#000000',
  },
}
SCSS
$custom: #841b7c;
$custom-light: #ab65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#841b7c",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 304.571,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43817,
    "c": 0.1747,
    "h": 331.6
  },
  "luminance": 0.07145
}

Semantic roles & 50–950 ramp

primary
#841B7C
secondary
#43B74C
accent
#E94C3F
background
#FAF6FA
surface
#F5EBF3
border
#CFC6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #841B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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