#842E9D#842E9D

#842E9D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.6% C 0.181 H 317.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#842E9D
RGBrgb(132, 46, 157)
HSLhsl(286, 55%, 40%)
HSVhsv(286, 71%, 62%)
CMYKcmyk(15.9%, 70.7%, 0%, 38.4%)
CIE-LABlab(36.55, 52.87, -43.49)
CIE-LCHlch(36.55, 68.46, 320.56°)
OKLaboklab(47.61% 0.1338 -0.1221)
OKLCHoklch(47.61% 0.181 317.6)
XYZxyz(16.5776, 9.2946, 32.8126)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E9D #479D2E
analogous
#4C2E9D #842E9D #9D2E7F
triadic
#842E9D #9D842E #2E9D84
tetradic
#842E9D #9D4C2E #479D2E #2E7F9D
square
#842E9D #9D4C2E #479D2E #2E7F9D
split-complementary
#842E9D #7F9D2E #2E9D4C
monochromatic
#34123E #5C206E #842E9D #A941C7 #BE70D5

Accessibility & contrast

On white

7.35
#842E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#842E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E9D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E9D#FFFFFF#000000##FFFFFF
##842E9D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#32599A
Tritanopia (blue-blind)
#834462
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842e9d;
/* rgb */ color: rgb(132, 46, 157);
/* oklch */ color: oklch(47.6% 0.181 317.6);
Tailwind
colors: {
  custom: {
    50: '#ab6eba',
    500: '#842e9d',
    950: '#000000',
  },
}
SCSS
$custom: #842e9d;
$custom-light: #ab6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#842e9d",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 286.486,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.47614,
    "c": 0.18111,
    "h": 317.6
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#842E9D
secondary
#7DBD6A
accent
#DE4A6B
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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