#842E99#842E99

#842E99 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.177 H 319.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#842E99
RGBrgb(132, 46, 153)
HSLhsl(288, 54%, 39%)
HSVhsv(288, 70%, 60%)
CMYKcmyk(13.7%, 69.9%, 0%, 40%)
CIE-LABlab(36.29, 52.07, -41.48)
CIE-LCHlch(36.29, 66.57, 321.46°)
OKLaboklab(47.35% 0.134 -0.1162)
OKLCHoklch(47.35% 0.177 319.1)
XYZxyz(16.2417, 9.1602, 31.0434)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E99 #43992E
analogous
#4F2E99 #842E99 #992E79
triadic
#842E99 #99842E #2E9984
tetradic
#842E99 #994F2E #43992E #2E7999
square
#842E99 #994F2E #43992E #2E7999
split-complementary
#842E99 #79992E #2E994F
monochromatic
#33123B #5B206A #842E99 #AB3FC5 #C06ED3

Accessibility & contrast

On white

7.42
#842E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842E99
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E99#FFFFFF#000000##FFFFFF
##842E991.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#355896
Tritanopia (blue-blind)
#844260
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e99;
/* rgb */ color: rgb(132, 46, 153);
/* oklch */ color: oklch(47.3% 0.177 319.1);
Tailwind
colors: {
  custom: {
    50: '#ab6eb8',
    500: '#842e99',
    950: '#000000',
  },
}
SCSS
$custom: #842e99;
$custom-light: #ab6eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#842e99",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 153
  },
  "hsl": {
    "h": 288.224,
    "s": 53.769,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4735,
    "c": 0.17737,
    "h": 319.1
  },
  "luminance": 0.09159
}

Semantic roles & 50–950 ramp

primary
#842E99
secondary
#78BB68
accent
#DD4B67
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E99

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

Preview Lab → · Contrast checker → · Palette generator →

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