#842EA2#842EA2

#842EA2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.186 H 315.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#842EA2
RGBrgb(132, 46, 162)
HSLhsl(284, 56%, 41%)
HSVhsv(284, 72%, 64%)
CMYKcmyk(18.5%, 71.6%, 0%, 36.5%)
CIE-LABlab(36.87, 53.89, -45.99)
CIE-LCHlch(36.87, 70.84, 319.53°)
OKLaboklab(47.95% 0.1333 -0.1294)
OKLCHoklch(47.95% 0.186 315.9)
XYZxyz(17.0133, 9.4688, 35.1069)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EA2 #4CA22E
analogous
#4A2EA2 #842EA2 #A22E86
triadic
#842EA2 #A2842E #2EA284
tetradic
#842EA2 #A24A2E #4CA22E #2E86A2
square
#842EA2 #A24A2E #4CA22E #2E86A2
split-complementary
#842EA2 #86A22E #2EA24A
monochromatic
#361343 #5D2072 #842EA2 #A743CA #BD73D7

Accessibility & contrast

On white

7.26
#842EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#842EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EA2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EA2#FFFFFF#000000##FFFFFF
##842EA21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2D599F
Tritanopia (blue-blind)
#824665
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842ea2;
/* rgb */ color: rgb(132, 46, 162);
/* oklch */ color: oklch(48.0% 0.186 315.9);
Tailwind
colors: {
  custom: {
    50: '#ab6fbe',
    500: '#842ea2',
    950: '#000000',
  },
}
SCSS
$custom: #842ea2;
$custom-light: #ab6fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#842ea2",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 284.483,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47951,
    "c": 0.18581,
    "h": 315.9
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#842EA2
secondary
#82BF6D
accent
#DF4970
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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