#842E89#842E89

#842E89 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.163 H 325.5°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#842E89
RGBrgb(132, 46, 137)
HSLhsl(297, 50%, 36%)
HSVhsv(297, 66%, 54%)
CMYKcmyk(3.6%, 66.4%, 0%, 46.3%)
CIE-LABlab(35.33, 48.98, -33.21)
CIE-LCHlch(35.33, 59.18, 325.86°)
OKLaboklab(46.35% 0.1342 -0.0921)
OKLCHoklch(46.35% 0.163 325.5)
XYZxyz(15.0077, 8.6666, 24.5444)
Luminance0.0867 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E89 #33892E
analogous
#562E89 #842E89 #892E60
triadic
#842E89 #89842E #2E8984
tetradic
#842E89 #89562E #33892E #2E6089
square
#842E89 #89562E #33892E #2E6089
split-complementary
#842E89 #60892E #2E8956
monochromatic
#2C0F2D #581F5B #842E89 #B03DB7 #C666CC

Accessibility & contrast

On white

7.68
#842E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842E89
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E89#FFFFFF#000000##FFFFFF
##842E891.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842e89;
/* rgb */ color: rgb(132, 46, 137);
/* oklch */ color: oklch(46.4% 0.163 325.5);
Tailwind
colors: {
  custom: {
    50: '#ab6eac',
    500: '#842e89',
    950: '#000000',
  },
}
SCSS
$custom: #842e89;
$custom-light: #ab6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#842e89",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 296.703,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.16272,
    "h": 325.5
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#842E89
secondary
#65B260
accent
#D94F56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E89

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

Preview Lab → · Contrast checker → · Palette generator →

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