#841E8B#841E8B

#841E8B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.184 H 325.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#841E8B
RGBrgb(132, 30, 139)
HSLhsl(296, 64%, 33%)
HSVhsv(296, 78%, 55%)
CMYKcmyk(5%, 78.4%, 0%, 45.5%)
CIE-LABlab(33.35, 55.31, -37.61)
CIE-LCHlch(33.35, 66.89, 325.79°)
OKLaboklab(44.97% 0.1507 -0.1048)
OKLCHoklch(44.97% 0.184 325.2)
XYZxyz(14.6399, 7.6991, 25.1361)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841E8B #258B1E
analogous
#4D1E8B #841E8B #8B1E5B
triadic
#841E8B #8B841E #1E8B84
tetradic
#841E8B #8B4D1E #258B1E #1E5B8B
square
#841E8B #8B4D1E #258B1E #1E5B8B
split-complementary
#841E8B #5B8B1E #1E8B4D
monochromatic
#240826 #541359 #841E8B #B429BD #CF4BD8

Accessibility & contrast

On white

8.27
#841E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#841E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841E8B
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841E8B#FFFFFF#000000##FFFFFF
##841E8B1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#365388
Tritanopia (blue-blind)
#873254
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #841e8b;
/* rgb */ color: rgb(132, 30, 139);
/* oklch */ color: oklch(45.0% 0.184 325.2);
Tailwind
colors: {
  custom: {
    50: '#ab67ad',
    500: '#841e8b',
    950: '#000000',
  },
}
SCSS
$custom: #841e8b;
$custom-light: #ab67ad;
$custom-dark: #000000;
JSON
{
  "hex": "#841e8b",
  "rgb": {
    "r": 132,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 296.147,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44969,
    "c": 0.18354,
    "h": 325.2
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#841E8B
secondary
#51BB4A
accent
#E7404B
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #841E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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