#842EA9#842EA9

#842EA9 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.192 H 313.5°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#842EA9
RGBrgb(132, 46, 169)
HSLhsl(282, 57%, 42%)
HSVhsv(282, 73%, 66%)
CMYKcmyk(21.9%, 72.8%, 0%, 33.7%)
CIE-LABlab(37.34, 55.34, -49.42)
CIE-LCHlch(37.34, 74.20, 318.23°)
OKLaboklab(48.44% 0.1326 -0.1395)
OKLCHoklch(48.44% 0.192 313.5)
XYZxyz(17.6529, 9.7247, 38.4756)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EA9 #53A92E
analogous
#462EA9 #842EA9 #A92E91
triadic
#842EA9 #A9842E #2EA984
tetradic
#842EA9 #A9462E #53A92E #2E91A9
square
#842EA9 #A9462E #53A92E #2E91A9
split-complementary
#842EA9 #91A92E #2EA946
monochromatic
#391449 #5E2179 #842EA9 #A547CD #BC77DA

Accessibility & contrast

On white

7.13
#842EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#842EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EA9
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EA9#FFFFFF#000000##FFFFFF
##842EA91.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#245AA6
Tritanopia (blue-blind)
#804969
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842ea9;
/* rgb */ color: rgb(132, 46, 169);
/* oklch */ color: oklch(48.4% 0.192 313.5);
Tailwind
colors: {
  custom: {
    50: '#ac6fc3',
    500: '#842ea9',
    950: '#000000',
  },
}
SCSS
$custom: #842ea9;
$custom-light: #ac6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#842ea9",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 281.951,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48438,
    "c": 0.19243,
    "h": 313.5
  },
  "luminance": 0.09724
}

Semantic roles & 50–950 ramp

primary
#842EA9
secondary
#89C271
accent
#E04775
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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