#842E9C#842E9C

#842E9C is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.180 H 318.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#842E9C
RGBrgb(132, 46, 156)
HSLhsl(287, 54%, 40%)
HSVhsv(287, 71%, 61%)
CMYKcmyk(15.4%, 70.5%, 0%, 38.8%)
CIE-LABlab(36.48, 52.67, -42.99)
CIE-LCHlch(36.48, 67.99, 320.78°)
OKLaboklab(47.55% 0.1338 -0.1206)
OKLCHoklch(47.55% 0.18 318)
XYZxyz(16.4926, 9.2605, 32.3648)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E9C #469C2E
analogous
#4D2E9C #842E9C #9C2E7D
triadic
#842E9C #9C842E #2E9C84
tetradic
#842E9C #9C4D2E #469C2E #2E7D9C
square
#842E9C #9C4D2E #469C2E #2E7D9C
split-complementary
#842E9C #7D9C2E #2E9C4D
monochromatic
#34123D #5C206D #842E9C #A940C7 #BF70D5

Accessibility & contrast

On white

7.36
#842E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#842E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E9C
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E9C#FFFFFF#000000##FFFFFF
##842E9C1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#325999
Tritanopia (blue-blind)
#834362
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842e9c;
/* rgb */ color: rgb(132, 46, 156);
/* oklch */ color: oklch(47.5% 0.180 318.0);
Tailwind
colors: {
  custom: {
    50: '#ab6eba',
    500: '#842e9c',
    950: '#000000',
  },
}
SCSS
$custom: #842e9c;
$custom-light: #ab6eba;
$custom-dark: #000000;
JSON
{
  "hex": "#842e9c",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 286.909,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47548,
    "c": 0.18016,
    "h": 318
  },
  "luminance": 0.0926
}

Semantic roles & 50–950 ramp

primary
#842E9C
secondary
#7CBC6A
accent
#DE4A6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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