#842E8F#842E8F

#842E8F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.168 H 323.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#842E8F
RGBrgb(132, 46, 143)
HSLhsl(293, 51%, 37%)
HSVhsv(293, 68%, 56%)
CMYKcmyk(7.7%, 67.8%, 0%, 43.9%)
CIE-LABlab(35.68, 50.11, -36.35)
CIE-LCHlch(35.68, 61.91, 324.04°)
OKLaboklab(46.72% 0.1343 -0.1012)
OKLCHoklch(46.72% 0.168 323)
XYZxyz(15.4502, 8.8436, 26.8745)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E8F #398F2E
analogous
#542E8F #842E8F #8F2E6A
triadic
#842E8F #8F842E #2E8F84
tetradic
#842E8F #8F542E #398F2E #2E6A8F
square
#842E8F #8F542E #398F2E #2E6A8F
split-complementary
#842E8F #6A8F2E #2E8F54
monochromatic
#2F1032 #591F61 #842E8F #AF3DBD #C369CF

Accessibility & contrast

On white

7.59
#842E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#842E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E8F
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E8F#FFFFFF#000000##FFFFFF
##842E8F1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#3C578D
Tritanopia (blue-blind)
#863E5B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842e8f;
/* rgb */ color: rgb(132, 46, 143);
/* oklch */ color: oklch(46.7% 0.168 323.0);
Tailwind
colors: {
  custom: {
    50: '#ab6eb0',
    500: '#842e8f',
    950: '#000000',
  },
}
SCSS
$custom: #842e8f;
$custom-light: #ab6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#842e8f",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 293.196,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.16814,
    "h": 323
  },
  "luminance": 0.08843
}

Semantic roles & 50–950 ramp

primary
#842E8F
secondary
#6DB663
accent
#DB4D5D
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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