#841AB4#841AB4

#841AB4 is a mid, highly saturated purple. Relative luminance 0.089; OKLCH L 47.7% C 0.221 H 311.5°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#841AB4
RGBrgb(132, 26, 180)
HSLhsl(281, 75%, 40%)
HSVhsv(281, 86%, 71%)
CMYKcmyk(26.7%, 85.6%, 0%, 29.4%)
CIE-LABlab(35.87, 64.21, -58.37)
CIE-LCHlch(35.87, 86.77, 317.73°)
OKLaboklab(47.66% 0.1464 -0.1656)
OKLCHoklch(47.66% 0.221 311.5)
XYZxyz(18.1218, 8.9401, 43.9422)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841AB4 #4AB41A
analogous
#371AB4 #841AB4 #B41A97
triadic
#841AB4 #B4841A #1AB484
tetradic
#841AB4 #B4371A #4AB41A #1A97B4
square
#841AB4 #B4371A #4AB41A #1A97B4
split-complementary
#841AB4 #97B41A #1AB437
monochromatic
#360B49 #5D127F #841AB4 #A82BE0 #BE60E8

Accessibility & contrast

On white

7.53
#841AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#841AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841AB4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841AB4#FFFFFF#000000##FFFFFF
##841AB41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#7E456B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #841ab4;
/* rgb */ color: rgb(132, 26, 180);
/* oklch */ color: oklch(47.7% 0.221 311.5);
Tailwind
colors: {
  custom: {
    50: '#ad67cb',
    500: '#841ab4',
    950: '#000000',
  },
}
SCSS
$custom: #841ab4;
$custom-light: #ad67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#841ab4",
  "rgb": {
    "r": 132,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 281.299,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47656,
    "c": 0.22107,
    "h": 311.5
  },
  "luminance": 0.0894
}

Semantic roles & 50–950 ramp

primary
#841AB4
secondary
#80CC5D
accent
#F13671
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #841AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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