#841B8E#841B8E

#841B8E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.189 H 324.1°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#841B8E
RGBrgb(132, 27, 142)
HSLhsl(295, 68%, 33%)
HSVhsv(295, 81%, 56%)
CMYKcmyk(7%, 81%, 0%, 44.3%)
CIE-LABlab(33.23, 56.74, -39.65)
CIE-LCHlch(33.23, 69.22, 325.05°)
OKLaboklab(44.95% 0.1529 -0.1107)
OKLCHoklch(44.95% 0.189 324.1)
XYZxyz(14.7897, 7.6433, 26.2823)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841B8E #258E1B
analogous
#4B1B8E #841B8E #8E1B5E
triadic
#841B8E #8E841B #1B8E84
tetradic
#841B8E #8E4B1B #258E1B #1B5E8E
square
#841B8E #8E4B1B #258E1B #1B5E8E
split-complementary
#841B8E #5E8E1B #1B8E4B
monochromatic
#240727 #54115B #841B8E #B425C1 #CF47DC

Accessibility & contrast

On white

8.31
#841B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#841B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841B8E
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841B8E#FFFFFF#000000##FFFFFF
##841B8E1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#873255
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #841b8e;
/* rgb */ color: rgb(132, 27, 142);
/* oklch */ color: oklch(44.9% 0.189 324.1);
Tailwind
colors: {
  custom: {
    50: '#ac66b0',
    500: '#841b8e',
    950: '#000000',
  },
}
SCSS
$custom: #841b8e;
$custom-light: #ac66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#841b8e",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 294.783,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44945,
    "c": 0.18879,
    "h": 324.1
  },
  "luminance": 0.07642
}

Semantic roles & 50–950 ramp

primary
#841B8E
secondary
#51BE47
accent
#EB3D4C
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #841B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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