#841F8E#841F8E

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

Color values

HEX#841F8E
RGBrgb(132, 31, 142)
HSLhsl(295, 64%, 34%)
HSVhsv(295, 78%, 56%)
CMYKcmyk(7%, 78.2%, 0%, 44.3%)
CIE-LABlab(33.65, 55.53, -38.98)
CIE-LCHlch(33.65, 67.85, 324.93°)
OKLaboklab(45.24% 0.1496 -0.1088)
OKLCHoklch(45.24% 0.185 324)
XYZxyz(14.8878, 7.8394, 26.3149)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841F8E #298E1F
analogous
#4D1F8E #841F8E #8E1F61
triadic
#841F8E #8E841F #1F8E84
tetradic
#841F8E #8E4D1F #298E1F #1F618E
square
#841F8E #8E4D1F #298E1F #1F618E
split-complementary
#841F8E #618E1F #1F8E4D
monochromatic
#27092A #55145C #841F8E #B32AC0 #CC4FD9

Accessibility & contrast

On white

8.18
#841F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#841F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841F8E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841F8E#FFFFFF#000000##FFFFFF
##841F8E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#34538B
Tritanopia (blue-blind)
#863456
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #841f8e;
/* rgb */ color: rgb(132, 31, 142);
/* oklch */ color: oklch(45.2% 0.185 324.0);
Tailwind
colors: {
  custom: {
    50: '#ab67b0',
    500: '#841f8e',
    950: '#000000',
  },
}
SCSS
$custom: #841f8e;
$custom-light: #ab67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#841f8e",
  "rgb": {
    "r": 132,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 294.595,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45241,
    "c": 0.185,
    "h": 324
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#841F8E
secondary
#57BB4D
accent
#E74150
background
#FAF6FA
surface
#F5EBF5
border
#CFC6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #841F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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