#841F7D#841F7D

#841F7D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.171 H 331.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#841F7D
RGBrgb(132, 31, 125)
HSLhsl(304, 62%, 32%)
HSVhsv(304, 77%, 52%)
CMYKcmyk(0%, 76.5%, 5.3%, 48.2%)
CIE-LABlab(32.63, 52.60, -30.03)
CIE-LCHlch(32.63, 60.57, 330.27°)
OKLaboklab(44.19% 0.15 -0.0828)
OKLCHoklch(44.19% 0.171 331.1)
XYZxyz(13.7074, 7.3673, 20.0981)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841F7D #1F8426
analogous
#581F84 #841F7D #841F4B
triadic
#841F7D #7D841F #1F7D84
tetradic
#841F7D #84581F #1F8426 #1F4B84
square
#841F7D #84581F #1F8426 #1F4B84
split-complementary
#841F7D #4B841F #1F8458
monochromatic
#21081F #52134E #841F7D #B62BAC #D449CB

Accessibility & contrast

On white

8.49
#841F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#841F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841F7D
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841F7D#FFFFFF#000000##FFFFFF
##841F7D1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#892C4C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #841f7d;
/* rgb */ color: rgb(132, 31, 125);
/* oklch */ color: oklch(44.2% 0.171 331.1);
Tailwind
colors: {
  custom: {
    50: '#ab66a3',
    500: '#841f7d',
    950: '#000000',
  },
}
SCSS
$custom: #841f7d;
$custom-light: #ab66a3;
$custom-dark: #000000;
JSON
{
  "hex": "#841f7d",
  "rgb": {
    "r": 132,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 304.158,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44188,
    "c": 0.17135,
    "h": 331.1
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#841F7D
secondary
#48B750
accent
#E54E43
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #841F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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