#842EA4#842EA4

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

Color values

HEX#842EA4
RGBrgb(132, 46, 164)
HSLhsl(284, 56%, 41%)
HSVhsv(284, 72%, 64%)
CMYKcmyk(19.5%, 72%, 0%, 35.7%)
CIE-LABlab(37.00, 54.30, -46.97)
CIE-LCHlch(37.00, 71.80, 319.14°)
OKLaboklab(48.09% 0.1331 -0.1323)
OKLCHoklch(48.09% 0.188 315.2)
XYZxyz(17.1925, 9.5405, 36.0506)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EA4 #4EA42E
analogous
#492EA4 #842EA4 #A42E89
triadic
#842EA4 #A4842E #2EA484
tetradic
#842EA4 #A4492E #4EA42E #2E89A4
square
#842EA4 #A4492E #4EA42E #2E89A4
split-complementary
#842EA4 #89A42E #2EA449
monochromatic
#371344 #5E2174 #842EA4 #A645CB #BD74D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842EA4#FFFFFF#000000##FFFFFF
##842EA41.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)
#0052A7
Deuteranopia (green-blind)
#2A59A1
Tritanopia (blue-blind)
#814766
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842ea4;
/* rgb */ color: rgb(132, 46, 164);
/* oklch */ color: oklch(48.1% 0.188 315.2);
Tailwind
colors: {
  custom: {
    50: '#ac6fc0',
    500: '#842ea4',
    950: '#000000',
  },
}
SCSS
$custom: #842ea4;
$custom-light: #ac6fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#842ea4",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 283.729,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48089,
    "c": 0.1877,
    "h": 315.2
  },
  "luminance": 0.0954
}

Semantic roles & 50–950 ramp

primary
#842EA4
secondary
#84C06E
accent
#DF4871
background
#FAF7FB
surface
#F5EDF7
border
#CFC8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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