#842588#842588

#842588 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.173 H 326.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#842588
RGBrgb(132, 37, 136)
HSLhsl(298, 57%, 34%)
HSVhsv(298, 73%, 53%)
CMYKcmyk(2.9%, 72.8%, 0%, 46.7%)
CIE-LABlab(34.00, 52.40, -34.72)
CIE-LCHlch(34.00, 62.85, 326.47°)
OKLaboklab(45.37% 0.1442 -0.0964)
OKLCHoklch(45.37% 0.173 326.2)
XYZxyz(14.6209, 8.0072, 24.0632)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842588 #298825
analogous
#532588 #842588 #88255B
triadic
#842588 #888425 #258884
tetradic
#842588 #885325 #298825 #255B88
square
#842588 #885325 #298825 #255B88
split-complementary
#842588 #5B8825 #258853
monochromatic
#270B28 #551858 #842588 #B332B8 #CC56D1

Accessibility & contrast

On white

8.07
#842588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#842588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842588
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842588#FFFFFF#000000##FFFFFF
##8425881.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488B
Deuteranopia (green-blind)
#3C5486
Tritanopia (blue-blind)
#883554
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842588;
/* rgb */ color: rgb(132, 37, 136);
/* oklch */ color: oklch(45.4% 0.173 326.2);
Tailwind
colors: {
  custom: {
    50: '#ab69ab',
    500: '#842588',
    950: '#000000',
  },
}
SCSS
$custom: #842588;
$custom-light: #ab69ab;
$custom-dark: #000000;
JSON
{
  "hex": "#842588",
  "rgb": {
    "r": 132,
    "g": 37,
    "b": 136
  },
  "hsl": {
    "h": 297.576,
    "s": 57.225,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45374,
    "c": 0.17343,
    "h": 326.2
  },
  "luminance": 0.08006
}

Semantic roles & 50–950 ramp

primary
#842588
secondary
#57B653
accent
#E0474E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842588

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

Preview Lab → · Contrast checker → · Palette generator →

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