#842BAC#842BAC

#842BAC is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.199 H 312.8°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#842BAC
RGBrgb(132, 43, 172)
HSLhsl(281, 60%, 42%)
HSVhsv(281, 75%, 67%)
CMYKcmyk(23.3%, 75%, 0%, 32.5%)
CIE-LABlab(37.14, 57.16, -51.55)
CIE-LCHlch(37.14, 76.97, 317.95°)
OKLaboklab(48.36% 0.1351 -0.1457)
OKLCHoklch(48.36% 0.199 312.8)
XYZxyz(17.8247, 9.6124, 39.9381)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BAC #53AC2B
analogous
#432BAC #842BAC #AC2B94
triadic
#842BAC #AC842B #2BAC84
tetradic
#842BAC #AC432B #53AC2B #2B94AC
square
#842BAC #AC432B #53AC2B #2B94AC
split-complementary
#842BAC #94AC2B #2BAC43
monochromatic
#39134A #5E1F7B #842BAC #A544D0 #BC75DC

Accessibility & contrast

On white

7.19
#842BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#842BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BAC
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BAC#FFFFFF#000000##FFFFFF
##842BAC1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#1C59A9
Tritanopia (blue-blind)
#80486A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842bac;
/* rgb */ color: rgb(132, 43, 172);
/* oklch */ color: oklch(48.4% 0.199 312.8);
Tailwind
colors: {
  custom: {
    50: '#ac6ec5',
    500: '#842bac',
    950: '#000000',
  },
}
SCSS
$custom: #842bac;
$custom-light: #ac6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#842bac",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 281.395,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48358,
    "c": 0.19868,
    "h": 312.8
  },
  "luminance": 0.09612
}

Semantic roles & 50–950 ramp

primary
#842BAC
secondary
#89C46F
accent
#E34576
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842BAC

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

Preview Lab → · Contrast checker → · Palette generator →

#842BAC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva