#842E88#842E88

#842E88 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.162 H 326.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#842E88
RGBrgb(132, 46, 136)
HSLhsl(297, 49%, 36%)
HSVhsv(297, 66%, 53%)
CMYKcmyk(2.9%, 66.2%, 0%, 46.7%)
CIE-LABlab(35.28, 48.79, -32.69)
CIE-LCHlch(35.28, 58.73, 326.18°)
OKLaboklab(46.29% 0.1341 -0.0906)
OKLCHoklch(46.29% 0.162 326)
XYZxyz(14.9363, 8.6380, 24.1684)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E88 #32882E
analogous
#572E88 #842E88 #882E5F
triadic
#842E88 #88842E #2E8884
tetradic
#842E88 #88572E #32882E #2E5F88
square
#842E88 #88572E #32882E #2E5F88
split-complementary
#842E88 #5F882E #2E8857
monochromatic
#2B0F2D #581F5A #842E88 #B03DB6 #C765CB

Accessibility & contrast

On white

7.70
#842E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#842E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E88
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E88#FFFFFF#000000##FFFFFF
##842E881.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8B
Deuteranopia (green-blind)
#415786
Tritanopia (blue-blind)
#873B57
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842e88;
/* rgb */ color: rgb(132, 46, 136);
/* oklch */ color: oklch(46.3% 0.162 326.0);
Tailwind
colors: {
  custom: {
    50: '#ab6eab',
    500: '#842e88',
    950: '#000000',
  },
}
SCSS
$custom: #842e88;
$custom-light: #ab6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#842e88",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 297.333,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46295,
    "c": 0.16183,
    "h": 326
  },
  "luminance": 0.08637
}

Semantic roles & 50–950 ramp

primary
#842E88
secondary
#64B260
accent
#D94F55
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842E88

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

Preview Lab → · Contrast checker → · Palette generator →

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