#842EA8#842EA8

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

Color values

HEX#842EA8
RGBrgb(132, 46, 168)
HSLhsl(282, 57%, 42%)
HSVhsv(282, 73%, 66%)
CMYKcmyk(21.4%, 72.6%, 0%, 34.1%)
CIE-LABlab(37.28, 55.14, -48.94)
CIE-LCHlch(37.28, 73.72, 318.41°)
OKLaboklab(48.37% 0.1327 -0.1381)
OKLCHoklch(48.37% 0.191 313.9)
XYZxyz(17.5594, 9.6872, 37.9830)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EA8 #52A82E
analogous
#472EA8 #842EA8 #A82E8F
triadic
#842EA8 #A8842E #2EA884
tetradic
#842EA8 #A8472E #52A82E #2E8FA8
square
#842EA8 #A8472E #52A82E #2E8FA8
split-complementary
#842EA8 #8FA82E #2EA847
monochromatic
#391448 #5E2178 #842EA8 #A547CD #BC77DA

Accessibility & contrast

On white

7.15
#842EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842EA8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EA8#FFFFFF#000000##FFFFFF
##842EA81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#265AA5
Tritanopia (blue-blind)
#804868
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842ea8;
/* rgb */ color: rgb(132, 46, 168);
/* oklch */ color: oklch(48.4% 0.191 313.9);
Tailwind
colors: {
  custom: {
    50: '#ac6fc3',
    500: '#842ea8',
    950: '#000000',
  },
}
SCSS
$custom: #842ea8;
$custom-light: #ac6fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#842ea8",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 282.295,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48367,
    "c": 0.19149,
    "h": 313.9
  },
  "luminance": 0.09687
}

Semantic roles & 50–950 ramp

primary
#842EA8
secondary
#88C270
accent
#E04875
background
#FAF7FC
surface
#F5EDF8
border
#CFC8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #842EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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