#842788#842788

#842788 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.171 H 326.2°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#842788
RGBrgb(132, 39, 136)
HSLhsl(298, 55%, 34%)
HSVhsv(298, 71%, 53%)
CMYKcmyk(2.9%, 71.3%, 0%, 46.7%)
CIE-LABlab(34.26, 51.65, -34.29)
CIE-LCHlch(34.26, 62.00, 326.41°)
OKLaboklab(45.56% 0.1421 -0.0952)
OKLCHoklch(45.56% 0.171 326.2)
XYZxyz(14.6849, 8.1351, 24.0845)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842788 #2B8827
analogous
#542788 #842788 #88275C
triadic
#842788 #888427 #278884
tetradic
#842788 #885427 #2B8827 #275C88
square
#842788 #885427 #2B8827 #275C88
split-complementary
#842788 #5C8827 #278854
monochromatic
#280C29 #561958 #842788 #B235B8 #CB5AD0

Accessibility & contrast

On white

7.99
#842788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#842788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842788
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842788#FFFFFF#000000##FFFFFF
##8427881.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498B
Deuteranopia (green-blind)
#3D5586
Tritanopia (blue-blind)
#873655
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842788;
/* rgb */ color: rgb(132, 39, 136);
/* oklch */ color: oklch(45.6% 0.171 326.2);
Tailwind
colors: {
  custom: {
    50: '#ab6aab',
    500: '#842788',
    950: '#000000',
  },
}
SCSS
$custom: #842788;
$custom-light: #ab6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#842788",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 297.526,
    "s": 55.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45564,
    "c": 0.17101,
    "h": 326.2
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#842788
secondary
#5AB556
accent
#DF494F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842788

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

Preview Lab → · Contrast checker → · Palette generator →

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