#842879#842879

#842879 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.157 H 333.0°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#842879
RGBrgb(132, 40, 121)
HSLhsl(307, 53%, 34%)
HSVhsv(307, 70%, 52%)
CMYKcmyk(0%, 69.7%, 8.3%, 48.2%)
CIE-LABlab(33.57, 48.65, -26.03)
CIE-LCHlch(33.57, 55.18, 331.85°)
OKLaboklab(44.8% 0.1402 -0.0713)
OKLCHoklch(44.8% 0.157 333)
XYZxyz(13.7258, 7.8047, 18.8690)
Luminance0.0780 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842879 #288433
analogous
#612884 #842879 #84284B
triadic
#842879 #798428 #287984
tetradic
#842879 #846128 #288433 #284B84
square
#842879 #846128 #288433 #284B84
split-complementary
#842879 #4B8428 #288461
monochromatic
#260C23 #551A4E #842879 #B336A4 #CD5ABF

Accessibility & contrast

On white

8.20
#842879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#842879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842879
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842879#FFFFFF#000000##FFFFFF
##8428791.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25467B
Deuteranopia (green-blind)
#455477
Tritanopia (blue-blind)
#8A304D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842879;
/* rgb */ color: rgb(132, 40, 121);
/* oklch */ color: oklch(44.8% 0.157 333.0);
Tailwind
colors: {
  custom: {
    50: '#ab6aa0',
    500: '#842879',
    950: '#000000',
  },
}
SCSS
$custom: #842879;
$custom-light: #ab6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#842879",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 307.174,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44798,
    "c": 0.15731,
    "h": 333
  },
  "luminance": 0.07804
}

Semantic roles & 50–950 ramp

primary
#842879
secondary
#56B261
accent
#DD5C4B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842879

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

Preview Lab → · Contrast checker → · Palette generator →

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