#842987#842987

#842987 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.168 H 326.6°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#842987
RGBrgb(132, 41, 135)
HSLhsl(298, 53%, 35%)
HSVhsv(298, 70%, 53%)
CMYKcmyk(2.2%, 69.6%, 0%, 47.1%)
CIE-LABlab(34.48, 50.69, -33.33)
CIE-LCHlch(34.48, 60.66, 326.67°)
OKLaboklab(45.7% 0.1399 -0.0924)
OKLCHoklch(45.7% 0.168 326.6)
XYZxyz(14.6816, 8.2416, 23.7345)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842987 #2C8729
analogous
#552987 #842987 #87295B
triadic
#842987 #878429 #298784
tetradic
#842987 #875529 #2C8729 #295B87
square
#842987 #875529 #2C8729 #295B87
split-complementary
#842987 #5B8729 #298755
monochromatic
#280C29 #561B58 #842987 #B237B6 #CA5DCE

Accessibility & contrast

On white

7.93
#842987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#842987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842987
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842987#FFFFFF#000000##FFFFFF
##8429871.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#3E5585
Tritanopia (blue-blind)
#883755
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842987;
/* rgb */ color: rgb(132, 41, 135);
/* oklch */ color: oklch(45.7% 0.168 326.6);
Tailwind
colors: {
  custom: {
    50: '#ab6baa',
    500: '#842987',
    950: '#000000',
  },
}
SCSS
$custom: #842987;
$custom-light: #ab6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#842987",
  "rgb": {
    "r": 132,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 298.085,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45702,
    "c": 0.16764,
    "h": 326.6
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#842987
secondary
#5CB359
accent
#DD4B50
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842987

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

Preview Lab → · Contrast checker → · Palette generator →

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