#842E98#842E98

#842E98 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.176 H 319.4°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#842E98
RGBrgb(132, 46, 152)
HSLhsl(289, 54%, 39%)
HSVhsv(289, 70%, 60%)
CMYKcmyk(13.2%, 69.7%, 0%, 40.4%)
CIE-LABlab(36.23, 51.87, -40.97)
CIE-LCHlch(36.23, 66.10, 321.70°)
OKLaboklab(47.29% 0.1341 -0.1147)
OKLCHoklch(47.29% 0.176 319.4)
XYZxyz(16.1595, 9.1273, 30.6102)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E98 #42982E
analogous
#4F2E98 #842E98 #982E77
triadic
#842E98 #98842E #2E9884
tetradic
#842E98 #984F2E #42982E #2E7798
square
#842E98 #984F2E #42982E #2E7798
split-complementary
#842E98 #77982E #2E984F
monochromatic
#32123A #5B2069 #842E98 #AB3EC5 #C06DD3

Accessibility & contrast

On white

7.43
#842E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#842E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E98
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E98#FFFFFF#000000##FFFFFF
##842E981.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#84425F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e98;
/* rgb */ color: rgb(132, 46, 152);
/* oklch */ color: oklch(47.3% 0.176 319.4);
Tailwind
colors: {
  custom: {
    50: '#ab6eb7',
    500: '#842e98',
    950: '#000000',
  },
}
SCSS
$custom: #842e98;
$custom-light: #ab6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#842e98",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 288.679,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.17643,
    "h": 319.4
  },
  "luminance": 0.09127
}

Semantic roles & 50–950 ramp

primary
#842E98
secondary
#77BA68
accent
#DD4B66
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E98

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

Preview Lab → · Contrast checker → · Palette generator →

#842E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva