#841F8D#841F8D

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

Color values

HEX#841F8D
RGBrgb(132, 31, 141)
HSLhsl(295, 64%, 34%)
HSVhsv(295, 78%, 55%)
CMYKcmyk(6.4%, 78%, 0%, 44.7%)
CIE-LABlab(33.58, 55.35, -38.47)
CIE-LCHlch(33.58, 67.41, 325.20°)
OKLaboklab(45.18% 0.1497 -0.1073)
OKLCHoklch(45.18% 0.184 324.4)
XYZxyz(14.8130, 7.8095, 25.9213)
Luminance0.0781 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841F8D #288D1F
analogous
#4D1F8D #841F8D #8D1F5F
triadic
#841F8D #8D841F #1F8D84
tetradic
#841F8D #8D4D1F #288D1F #1F5F8D
square
#841F8D #8D4D1F #288D1F #1F5F8D
split-complementary
#841F8D #5F8D1F #1F8D4D
monochromatic
#260929 #55145B #841F8D #B32ABF #CD4ED8

Accessibility & contrast

On white

8.20
#841F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#841F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841F8D
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841F8D#FFFFFF#000000##FFFFFF
##841F8D1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #841f8d;
/* rgb */ color: rgb(132, 31, 141);
/* oklch */ color: oklch(45.2% 0.184 324.4);
Tailwind
colors: {
  custom: {
    50: '#ab67af',
    500: '#841f8d',
    950: '#000000',
  },
}
SCSS
$custom: #841f8d;
$custom-light: #ab67af;
$custom-dark: #000000;
JSON
{
  "hex": "#841f8d",
  "rgb": {
    "r": 132,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 295.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45176,
    "c": 0.18417,
    "h": 324.4
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

primary
#841F8D
secondary
#56BB4D
accent
#E7414E
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #841F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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