#842E9F#842E9F

#842E9F is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.7% C 0.183 H 316.9°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#842E9F
RGBrgb(132, 46, 159)
HSLhsl(286, 55%, 40%)
HSVhsv(286, 71%, 62%)
CMYKcmyk(17%, 71.1%, 0%, 37.6%)
CIE-LABlab(36.67, 53.28, -44.49)
CIE-LCHlch(36.67, 69.41, 320.13°)
OKLaboklab(47.75% 0.1336 -0.125)
OKLCHoklch(47.75% 0.183 316.9)
XYZxyz(16.7498, 9.3634, 33.7192)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E9F #499F2E
analogous
#4C2E9F #842E9F #9F2E81
triadic
#842E9F #9F842E #2E9F84
tetradic
#842E9F #9F4C2E #499F2E #2E819F
square
#842E9F #9F4C2E #499F2E #2E819F
split-complementary
#842E9F #819F2E #2E9F4C
monochromatic
#351340 #5D2070 #842E9F #A842C8 #BE71D6

Accessibility & contrast

On white

7.31
#842E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#842E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E9F
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E9F#FFFFFF#000000##FFFFFF
##842E9F1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A2
Deuteranopia (green-blind)
#30599C
Tritanopia (blue-blind)
#834463
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842e9f;
/* rgb */ color: rgb(132, 46, 159);
/* oklch */ color: oklch(47.7% 0.183 316.9);
Tailwind
colors: {
  custom: {
    50: '#ab6fbc',
    500: '#842e9f',
    950: '#000000',
  },
}
SCSS
$custom: #842e9f;
$custom-light: #ab6fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#842e9f",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 285.664,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47748,
    "c": 0.18298,
    "h": 316.9
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

primary
#842E9F
secondary
#7FBE6B
accent
#DE496D
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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