#841B7B#841B7B

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

Color values

HEX#841B7B
RGBrgb(132, 27, 123)
HSLhsl(305, 66%, 31%)
HSVhsv(305, 80%, 52%)
CMYKcmyk(0%, 79.5%, 6.8%, 48.2%)
CIE-LABlab(32.08, 53.52, -29.64)
CIE-LCHlch(32.08, 61.19, 331.02°)
OKLaboklab(43.76% 0.1536 -0.0816)
OKLCHoklch(43.76% 0.174 332)
XYZxyz(13.4828, 7.1206, 19.3994)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B7B #1B8424
analogous
#581B84 #841B7B #841B46
triadic
#841B7B #7B841B #1B7B84
tetradic
#841B7B #84581B #1B8424 #1B4684
square
#841B7B #84581B #1B8424 #1B4684
split-complementary
#841B7B #46841B #1B8458
monochromatic
#1E061C #51114C #841B7B #B725AA #D841CB

Accessibility & contrast

On white

8.66
#841B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#841B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841B7B
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B7B#FFFFFF#000000##FFFFFF
##841B7B1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427E
Deuteranopia (green-blind)
#3F5179
Tritanopia (blue-blind)
#8A284A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #841b7b;
/* rgb */ color: rgb(132, 27, 123);
/* oklch */ color: oklch(43.8% 0.174 332.0);
Tailwind
colors: {
  custom: {
    50: '#ab65a1',
    500: '#841b7b',
    950: '#000000',
  },
}
SCSS
$custom: #841b7b;
$custom-light: #ab65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#841b7b",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 305.143,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43759,
    "c": 0.17394,
    "h": 332
  },
  "luminance": 0.07119
}

Semantic roles & 50–950 ramp

primary
#841B7B
secondary
#43B74D
accent
#E94D3F
background
#FAF6FA
surface
#F5EBF3
border
#CFC6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #841B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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