#842289#842289

#842289 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.178 H 325.9°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#842289
RGBrgb(132, 34, 137)
HSLhsl(297, 60%, 34%)
HSVhsv(297, 75%, 54%)
CMYKcmyk(3.6%, 75.2%, 0%, 46.3%)
CIE-LABlab(33.68, 53.65, -35.84)
CIE-LCHlch(33.68, 64.51, 326.26°)
OKLaboklab(45.17% 0.1471 -0.0996)
OKLCHoklch(45.17% 0.178 325.9)
XYZxyz(14.6028, 7.8567, 24.4094)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842289 #278922
analogous
#502289 #842289 #89225A
triadic
#842289 #898422 #228984
tetradic
#842289 #895022 #278922 #225A89
square
#842289 #895022 #278922 #225A89
split-complementary
#842289 #5A8922 #228950
monochromatic
#260A27 #551658 #842289 #B32EBA #CE51D4

Accessibility & contrast

On white

8.17
#842289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#842289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842289
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842289#FFFFFF#000000##FFFFFF
##8422891.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02478C
Deuteranopia (green-blind)
#395386
Tritanopia (blue-blind)
#873454
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #842289;
/* rgb */ color: rgb(132, 34, 137);
/* oklch */ color: oklch(45.2% 0.178 325.9);
Tailwind
colors: {
  custom: {
    50: '#ab68ac',
    500: '#842289',
    950: '#000000',
  },
}
SCSS
$custom: #842289;
$custom-light: #ab68ac;
$custom-dark: #000000;
JSON
{
  "hex": "#842289",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 297.087,
    "s": 60.234,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45168,
    "c": 0.1777,
    "h": 325.9
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#842289
secondary
#54B84F
accent
#E3444C
background
#FAF6FA
surface
#F5EBF4
border
#CFC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842289

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

Preview Lab → · Contrast checker → · Palette generator →

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