#842885#842885

#842885 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.167 H 327.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#842885
RGBrgb(132, 40, 133)
HSLhsl(299, 54%, 34%)
HSVhsv(299, 70%, 52%)
CMYKcmyk(0.8%, 69.9%, 0%, 47.8%)
CIE-LABlab(34.23, 50.72, -32.49)
CIE-LCHlch(34.23, 60.24, 327.35°)
OKLaboklab(45.48% 0.141 -0.09)
OKLCHoklch(45.48% 0.167 327.4)
XYZxyz(14.5079, 8.1176, 22.9885)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842885 #298528
analogous
#562885 #842885 #852858
triadic
#842885 #858428 #288584
tetradic
#842885 #855628 #298528 #285885
square
#842885 #855628 #298528 #285885
split-complementary
#842885 #588528 #288556
monochromatic
#270C27 #551A56 #842885 #B336B4 #CC5ACD

Accessibility & contrast

On white

8.00
#842885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842885
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842885#FFFFFF#000000##FFFFFF
##8428851.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184988
Deuteranopia (green-blind)
#3F5583
Tritanopia (blue-blind)
#883653
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842885;
/* rgb */ color: rgb(132, 40, 133);
/* oklch */ color: oklch(45.5% 0.167 327.4);
Tailwind
colors: {
  custom: {
    50: '#ab6ba9',
    500: '#842885',
    950: '#000000',
  },
}
SCSS
$custom: #842885;
$custom-light: #ab6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#842885",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 299.355,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45482,
    "c": 0.16722,
    "h": 327.4
  },
  "luminance": 0.08117
}

Semantic roles & 50–950 ramp

primary
#842885
secondary
#57B356
accent
#DD4B4C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842885

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

Preview Lab → · Contrast checker → · Palette generator →

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