#842386#842386

#842386 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.174 H 327.1°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#842386
RGBrgb(132, 35, 134)
HSLhsl(299, 59%, 33%)
HSVhsv(299, 74%, 53%)
CMYKcmyk(1.5%, 73.9%, 0%, 47.5%)
CIE-LABlab(33.63, 52.77, -34.07)
CIE-LCHlch(33.63, 62.81, 327.15°)
OKLaboklab(45.07% 0.1462 -0.0945)
OKLCHoklch(45.07% 0.174 327.1)
XYZxyz(14.4196, 7.8298, 23.3015)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842386 #258623
analogous
#522386 #842386 #862356
triadic
#842386 #868423 #238684
tetradic
#842386 #865223 #258623 #235686
square
#842386 #865223 #258623 #235686
split-complementary
#842386 #568623 #238652
monochromatic
#240A25 #541655 #842386 #B430B7 #CF52D2

Accessibility & contrast

On white

8.18
#842386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842386
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842386#FFFFFF#000000##FFFFFF
##8423861.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4789
Deuteranopia (green-blind)
#3C5384
Tritanopia (blue-blind)
#883352
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842386;
/* rgb */ color: rgb(132, 35, 134);
/* oklch */ color: oklch(45.1% 0.174 327.1);
Tailwind
colors: {
  custom: {
    50: '#ab68aa',
    500: '#842386',
    950: '#000000',
  },
}
SCSS
$custom: #842386;
$custom-light: #ab68aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842386",
  "rgb": {
    "r": 132,
    "g": 35,
    "b": 134
  },
  "hsl": {
    "h": 298.788,
    "s": 58.58,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4507,
    "c": 0.1741,
    "h": 327.1
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#842386
secondary
#51B54F
accent
#E24649
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842386

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

Preview Lab → · Contrast checker → · Palette generator →

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