#842E9B#842E9B

#842E9B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.179 H 318.3°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#842E9B
RGBrgb(132, 46, 155)
HSLhsl(287, 54%, 39%)
HSVhsv(287, 70%, 61%)
CMYKcmyk(14.8%, 70.3%, 0%, 39.2%)
CIE-LABlab(36.42, 52.47, -42.49)
CIE-LCHlch(36.42, 67.51, 321.00°)
OKLaboklab(47.48% 0.1339 -0.1191)
OKLCHoklch(47.48% 0.179 318.3)
XYZxyz(16.4083, 9.2268, 31.9206)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E9B #459B2E
analogous
#4D2E9B #842E9B #9B2E7C
triadic
#842E9B #9B842E #2E9B84
tetradic
#842E9B #9B4D2E #459B2E #2E7C9B
square
#842E9B #9B4D2E #459B2E #2E7C9B
split-complementary
#842E9B #7C9B2E #2E9B4D
monochromatic
#34123D #5C206C #842E9B #AA40C6 #BF6FD4

Accessibility & contrast

On white

7.38
#842E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#842E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E9B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E9B#FFFFFF#000000##FFFFFF
##842E9B1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#335898
Tritanopia (blue-blind)
#844361
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842e9b;
/* rgb */ color: rgb(132, 46, 155);
/* oklch */ color: oklch(47.5% 0.179 318.3);
Tailwind
colors: {
  custom: {
    50: '#ab6eb9',
    500: '#842e9b',
    950: '#000000',
  },
}
SCSS
$custom: #842e9b;
$custom-light: #ab6eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#842e9b",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 287.339,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.47482,
    "c": 0.17923,
    "h": 318.3
  },
  "luminance": 0.09226
}

Semantic roles & 50–950 ramp

primary
#842E9B
secondary
#7BBC69
accent
#DE4A69
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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