#841BA8#841BA8

#841BA8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.8% C 0.210 H 315.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#841BA8
RGBrgb(132, 27, 168)
HSLhsl(285, 72%, 38%)
HSVhsv(285, 84%, 66%)
CMYKcmyk(21.4%, 83.9%, 0%, 34.1%)
CIE-LABlab(35.04, 61.58, -52.55)
CIE-LCHlch(35.04, 80.96, 319.52°)
OKLaboklab(46.79% 0.1488 -0.1485)
OKLCHoklch(46.79% 0.21 315)
XYZxyz(16.9744, 8.5172, 37.7880)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#841BA8 #3FA81B
analogous
#3D1BA8 #841BA8 #A81B85
triadic
#841BA8 #A8841B #1BA884
tetradic
#841BA8 #A83D1B #3FA81B #1B85A8
square
#841BA8 #A83D1B #3FA81B #1B85A8
split-complementary
#841BA8 #85A81B #1BA83D
monochromatic
#310A3F #5B1373 #841BA8 #AD24DC #C159E4

Accessibility & contrast

On white

7.77
#841BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#841BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #841BA8
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##841BA8#FFFFFF#000000##FFFFFF
##841BA81.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0F55A5
Tritanopia (blue-blind)
#813F64
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #841ba8;
/* rgb */ color: rgb(132, 27, 168);
/* oklch */ color: oklch(46.8% 0.210 315.0);
Tailwind
colors: {
  custom: {
    50: '#ad67c3',
    500: '#841ba8',
    950: '#000000',
  },
}
SCSS
$custom: #841ba8;
$custom-light: #ad67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#841ba8",
  "rgb": {
    "r": 132,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 284.681,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4679,
    "c": 0.21022,
    "h": 315
  },
  "luminance": 0.08517
}

Semantic roles & 50–950 ramp

primary
#841BA8
secondary
#74C857
accent
#EF3967
background
#FBF6FC
surface
#F6EBF8
border
#D0C6D1
text
#110712
muted
#807A81

Preview Lab

Preview with #841BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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