#842687#842687

#842687 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.171 H 326.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#842687
RGBrgb(132, 38, 135)
HSLhsl(298, 56%, 34%)
HSVhsv(298, 72%, 53%)
CMYKcmyk(2.2%, 71.9%, 0%, 47.1%)
CIE-LABlab(34.07, 51.85, -33.98)
CIE-LCHlch(34.07, 61.99, 326.76°)
OKLaboklab(45.41% 0.1431 -0.0943)
OKLCHoklch(45.41% 0.171 326.6)
XYZxyz(14.5817, 8.0420, 23.7012)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842687 #298726
analogous
#542687 #842687 #87265A
triadic
#842687 #878426 #268784
tetradic
#842687 #875426 #298726 #265A87
square
#842687 #875426 #298726 #265A87
split-complementary
#842687 #5A8726 #268754
monochromatic
#270B27 #551957 #842687 #B333B7 #CC58D0

Accessibility & contrast

On white

8.05
#842687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#842687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842687
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842687#FFFFFF#000000##FFFFFF
##8426871.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12488A
Deuteranopia (green-blind)
#3D5485
Tritanopia (blue-blind)
#883554
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842687;
/* rgb */ color: rgb(132, 38, 135);
/* oklch */ color: oklch(45.4% 0.171 326.6);
Tailwind
colors: {
  custom: {
    50: '#ab6aaa',
    500: '#842687',
    950: '#000000',
  },
}
SCSS
$custom: #842687;
$custom-light: #ab6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#842687",
  "rgb": {
    "r": 132,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 298.144,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45407,
    "c": 0.17139,
    "h": 326.6
  },
  "luminance": 0.08041
}

Semantic roles & 50–950 ramp

primary
#842687
secondary
#57B554
accent
#DF484D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842687

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

Preview Lab → · Contrast checker → · Palette generator →

#842687 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva