#842087#842087

#842087 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.178 H 326.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#842087
RGBrgb(132, 32, 135)
HSLhsl(298, 62%, 33%)
HSVhsv(298, 76%, 53%)
CMYKcmyk(2.2%, 76.3%, 0%, 47.1%)
CIE-LABlab(33.33, 53.97, -35.16)
CIE-LCHlch(33.33, 64.41, 326.91°)
OKLaboklab(44.88% 0.1491 -0.0977)
OKLCHoklch(44.88% 0.178 326.8)
XYZxyz(14.4052, 7.6888, 23.6423)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842087 #238720
analogous
#502087 #842087 #872057
triadic
#842087 #878420 #208784
tetradic
#842087 #875020 #238720 #205787
square
#842087 #875020 #238720 #205787
split-complementary
#842087 #578720 #208750
monochromatic
#230924 #541456 #842087 #B42CB8 #D14DD5

Accessibility & contrast

On white

8.28
#842087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#842087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842087
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842087#FFFFFF#000000##FFFFFF
##8420871.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02468A
Deuteranopia (green-blind)
#3A5384
Tritanopia (blue-blind)
#883152
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842087;
/* rgb */ color: rgb(132, 32, 135);
/* oklch */ color: oklch(44.9% 0.178 326.8);
Tailwind
colors: {
  custom: {
    50: '#ab67aa',
    500: '#842087',
    950: '#000000',
  },
}
SCSS
$custom: #842087;
$custom-light: #ab67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842087",
  "rgb": {
    "r": 132,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 298.252,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44875,
    "c": 0.17823,
    "h": 326.8
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#842087
secondary
#4EB84B
accent
#E54348
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842087

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

Preview Lab → · Contrast checker → · Palette generator →

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