#842BAA#842BAA

#842BAA is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.197 H 313.5°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#842BAA
RGBrgb(132, 43, 170)
HSLhsl(282, 60%, 42%)
HSVhsv(282, 75%, 67%)
CMYKcmyk(22.4%, 74.7%, 0%, 33.3%)
CIE-LABlab(37.00, 56.74, -50.58)
CIE-LCHlch(37.00, 76.01, 318.28°)
OKLaboklab(48.21% 0.1354 -0.1429)
OKLCHoklch(48.21% 0.197 313.5)
XYZxyz(17.6340, 9.5361, 38.9342)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BAA #51AA2B
analogous
#452BAA #842BAA #AA2B91
triadic
#842BAA #AA842B #2BAA84
tetradic
#842BAA #AA452B #51AA2B #2B91AA
square
#842BAA #AA452B #51AA2B #2B91AA
split-complementary
#842BAA #91AA2B #2BAA45
monochromatic
#381248 #5E1F79 #842BAA #A543CF #BD74DC

Accessibility & contrast

On white

7.22
#842BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#842BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842BAA
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BAA#FFFFFF#000000##FFFFFF
##842BAA1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1F59A7
Tritanopia (blue-blind)
#804769
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842baa;
/* rgb */ color: rgb(132, 43, 170);
/* oklch */ color: oklch(48.2% 0.197 313.5);
Tailwind
colors: {
  custom: {
    50: '#ac6ec4',
    500: '#842baa',
    950: '#000000',
  },
}
SCSS
$custom: #842baa;
$custom-light: #ac6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#842baa",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 282.047,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48214,
    "c": 0.19682,
    "h": 313.5
  },
  "luminance": 0.09536
}

Semantic roles & 50–950 ramp

primary
#842BAA
secondary
#87C36E
accent
#E34574
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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