#842E9A#842E9A

#842E9A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.178 H 318.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#842E9A
RGBrgb(132, 46, 154)
HSLhsl(288, 54%, 39%)
HSVhsv(288, 70%, 60%)
CMYKcmyk(14.3%, 70.1%, 0%, 39.6%)
CIE-LABlab(36.35, 52.27, -41.98)
CIE-LCHlch(36.35, 67.04, 321.23°)
OKLaboklab(47.42% 0.134 -0.1177)
OKLCHoklch(47.42% 0.178 318.7)
XYZxyz(16.3247, 9.1934, 31.4802)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E9A #449A2E
analogous
#4E2E9A #842E9A #9A2E7A
triadic
#842E9A #9A842E #2E9A84
tetradic
#842E9A #9A4E2E #449A2E #2E7A9A
square
#842E9A #9A4E2E #449A2E #2E7A9A
split-complementary
#842E9A #7A9A2E #2E9A4E
monochromatic
#33123C #5C206B #842E9A #AA3FC6 #BF6FD4

Accessibility & contrast

On white

7.40
#842E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#842E9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E9A
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E9A#FFFFFF#000000##FFFFFF
##842E9A1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509D
Deuteranopia (green-blind)
#345897
Tritanopia (blue-blind)
#844260
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e9a;
/* rgb */ color: rgb(132, 46, 154);
/* oklch */ color: oklch(47.4% 0.178 318.7);
Tailwind
colors: {
  custom: {
    50: '#ab6eb8',
    500: '#842e9a',
    950: '#000000',
  },
}
SCSS
$custom: #842e9a;
$custom-light: #ab6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#842e9a",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 287.778,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.47416,
    "c": 0.1783,
    "h": 318.7
  },
  "luminance": 0.09193
}

Semantic roles & 50–950 ramp

primary
#842E9A
secondary
#79BB69
accent
#DD4A68
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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