#842888#842888

#842888 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.170 H 326.1°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#842888
RGBrgb(132, 40, 136)
HSLhsl(298, 55%, 35%)
HSVhsv(298, 71%, 53%)
CMYKcmyk(2.9%, 70.6%, 0%, 46.7%)
CIE-LABlab(34.40, 51.26, -34.08)
CIE-LCHlch(34.40, 61.55, 326.38°)
OKLaboklab(45.66% 0.141 -0.0946)
OKLCHoklch(45.66% 0.17 326.1)
XYZxyz(14.7182, 8.2017, 24.0956)
Luminance0.0820 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842888 #2C8828
analogous
#542888 #842888 #88285C
triadic
#842888 #888428 #288884
tetradic
#842888 #885428 #2C8828 #285C88
square
#842888 #885428 #2C8828 #285C88
split-complementary
#842888 #5C8828 #288854
monochromatic
#280C29 #561A59 #842888 #B236B7 #CA5BCF

Accessibility & contrast

On white

7.95
#842888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#842888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842888
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842888#FFFFFF#000000##FFFFFF
##8428881.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842888;
/* rgb */ color: rgb(132, 40, 136);
/* oklch */ color: oklch(45.7% 0.170 326.1);
Tailwind
colors: {
  custom: {
    50: '#ab6bab',
    500: '#842888',
    950: '#000000',
  },
}
SCSS
$custom: #842888;
$custom-light: #ab6bab;
$custom-dark: #000000;
JSON
{
  "hex": "#842888",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 136
  },
  "hsl": {
    "h": 297.5,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45662,
    "c": 0.16977,
    "h": 326.1
  },
  "luminance": 0.08201
}

Semantic roles & 50–950 ramp

primary
#842888
secondary
#5CB458
accent
#DE4A50
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842888

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

Preview Lab → · Contrast checker → · Palette generator →

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