#842884#842884

#842884 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.166 H 327.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#842884
RGBrgb(132, 40, 132)
HSLhsl(300, 53%, 34%)
HSVhsv(300, 70%, 52%)
CMYKcmyk(0%, 69.7%, 0%, 48.2%)
CIE-LABlab(34.17, 50.54, -31.96)
CIE-LCHlch(34.17, 59.80, 327.69°)
OKLaboklab(45.42% 0.1409 -0.0884)
OKLCHoklch(45.42% 0.166 327.9)
XYZxyz(14.4392, 8.0901, 22.6263)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842884 #288428
analogous
#562884 #842884 #842856
triadic
#842884 #848428 #288484
tetradic
#842884 #845628 #288428 #285684
square
#842884 #845628 #288428 #285684
split-complementary
#842884 #568428 #288456
monochromatic
#260C26 #551A55 #842884 #B336B3 #CD5ACD

Accessibility & contrast

On white

8.02
#842884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#842884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842884
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842884#FFFFFF#000000##FFFFFF
##8428841.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4987
Deuteranopia (green-blind)
#3F5582
Tritanopia (blue-blind)
#883553
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842884;
/* rgb */ color: rgb(132, 40, 132);
/* oklch */ color: oklch(45.4% 0.166 327.9);
Tailwind
colors: {
  custom: {
    50: '#ab6ba8',
    500: '#842884',
    950: '#000000',
  },
}
SCSS
$custom: #842884;
$custom-light: #ab6ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#842884",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 300,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45423,
    "c": 0.16637,
    "h": 327.9
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#842884
secondary
#56B256
accent
#DD4B4B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842884

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

Preview Lab → · Contrast checker → · Palette generator →

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