#841E8D#841E8D

#841E8D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.185 H 324.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#841E8D
RGBrgb(132, 30, 141)
HSLhsl(295, 65%, 34%)
HSVhsv(295, 79%, 55%)
CMYKcmyk(6.4%, 78.7%, 0%, 44.7%)
CIE-LABlab(33.47, 55.67, -38.64)
CIE-LCHlch(33.47, 67.77, 325.23°)
OKLaboklab(45.1% 0.1506 -0.1078)
OKLCHoklch(45.1% 0.185 324.4)
XYZxyz(14.7873, 7.7581, 25.9127)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841E8D #278D1E
analogous
#4C1E8D #841E8D #8D1E5E
triadic
#841E8D #8D841E #1E8D84
tetradic
#841E8D #8D4C1E #278D1E #1E5E8D
square
#841E8D #8D4C1E #278D1E #1E5E8D
split-complementary
#841E8D #5E8D1E #1E8D4C
monochromatic
#260928 #55135B #841E8D #B329BF #CE4CD9

Accessibility & contrast

On white

8.23
#841E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#841E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841E8D
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841E8D#FFFFFF#000000##FFFFFF
##841E8D1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#35538A
Tritanopia (blue-blind)
#873355
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #841e8d;
/* rgb */ color: rgb(132, 30, 141);
/* oklch */ color: oklch(45.1% 0.185 324.4);
Tailwind
colors: {
  custom: {
    50: '#ab67af',
    500: '#841e8d',
    950: '#000000',
  },
}
SCSS
$custom: #841e8d;
$custom-light: #ab67af;
$custom-dark: #000000;
JSON
{
  "hex": "#841e8d",
  "rgb": {
    "r": 132,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 295.135,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.18516,
    "h": 324.4
  },
  "luminance": 0.07757
}

Semantic roles & 50–950 ramp

primary
#841E8D
secondary
#54BC4B
accent
#E8404E
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #841E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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