#842387#842387

#842387 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.175 H 326.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#842387
RGBrgb(132, 35, 135)
HSLhsl(298, 59%, 33%)
HSVhsv(298, 74%, 53%)
CMYKcmyk(2.2%, 74.1%, 0%, 47.1%)
CIE-LABlab(33.69, 52.94, -34.59)
CIE-LCHlch(33.69, 63.24, 326.84°)
OKLaboklab(45.13% 0.1462 -0.096)
OKLCHoklch(45.13% 0.175 326.7)
XYZxyz(14.4897, 7.8579, 23.6705)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842387 #268723
analogous
#522387 #842387 #872358
triadic
#842387 #878423 #238784
tetradic
#842387 #875223 #268723 #235887
square
#842387 #875223 #268723 #235887
split-complementary
#842387 #588723 #238752
monochromatic
#250A26 #541656 #842387 #B430B8 #CE52D2

Accessibility & contrast

On white

8.17
#842387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#842387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842387
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842387#FFFFFF#000000##FFFFFF
##8423871.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#3B5385
Tritanopia (blue-blind)
#883353
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842387;
/* rgb */ color: rgb(132, 35, 135);
/* oklch */ color: oklch(45.1% 0.175 326.7);
Tailwind
colors: {
  custom: {
    50: '#ab68aa',
    500: '#842387',
    950: '#000000',
  },
}
SCSS
$custom: #842387;
$custom-light: #ab68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842387",
  "rgb": {
    "r": 132,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 298.2,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45131,
    "c": 0.17492,
    "h": 326.7
  },
  "luminance": 0.07857
}

Semantic roles & 50–950 ramp

primary
#842387
secondary
#53B650
accent
#E2464A
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842387

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

Preview Lab → · Contrast checker → · Palette generator →

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