#842579#842579

#842579 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.161 H 333.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#842579
RGBrgb(132, 37, 121)
HSLhsl(307, 56%, 33%)
HSVhsv(307, 72%, 52%)
CMYKcmyk(0%, 72%, 8.3%, 48.2%)
CIE-LABlab(33.16, 49.81, -26.69)
CIE-LCHlch(33.16, 56.51, 331.82°)
OKLaboklab(44.5% 0.1436 -0.0732)
OKLCHoklch(44.5% 0.161 333)
XYZxyz(13.6285, 7.6103, 18.8366)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842579 #258430
analogous
#5F2584 #842579 #84254A
triadic
#842579 #798425 #257984
tetradic
#842579 #845F25 #258430 #254A84
square
#842579 #845F25 #258430 #254A84
split-complementary
#842579 #4A8425 #25845F
monochromatic
#240A21 #54184D #842579 #B432A5 #CF54C1

Accessibility & contrast

On white

8.33
#842579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#842579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842579
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842579#FFFFFF#000000##FFFFFF
##8425791.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457B
Deuteranopia (green-blind)
#445377
Tritanopia (blue-blind)
#8A2E4C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842579;
/* rgb */ color: rgb(132, 37, 121);
/* oklch */ color: oklch(44.5% 0.161 333.0);
Tailwind
colors: {
  custom: {
    50: '#ab69a0',
    500: '#842579',
    950: '#000000',
  },
}
SCSS
$custom: #842579;
$custom-light: #ab69a0;
$custom-dark: #000000;
JSON
{
  "hex": "#842579",
  "rgb": {
    "r": 132,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 306.947,
    "s": 56.213,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44498,
    "c": 0.1612,
    "h": 333
  },
  "luminance": 0.07609
}

Semantic roles & 50–950 ramp

primary
#842579
secondary
#51B35D
accent
#E05A48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842579

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

Preview Lab → · Contrast checker → · Palette generator →

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