#842CA5#842CA5

#842CA5 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.191 H 315.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#842CA5
RGBrgb(132, 44, 165)
HSLhsl(284, 58%, 41%)
HSVhsv(284, 73%, 65%)
CMYKcmyk(20%, 73.3%, 0%, 35.3%)
CIE-LABlab(36.79, 55.31, -47.92)
CIE-LCHlch(36.79, 73.19, 319.10°)
OKLaboklab(47.96% 0.1351 -0.1351)
OKLCHoklch(47.96% 0.191 315)
XYZxyz(17.2068, 9.4241, 36.5027)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CA5 #4DA52C
analogous
#472CA5 #842CA5 #A52C89
triadic
#842CA5 #A5842C #2CA584
tetradic
#842CA5 #A5472C #4DA52C #2C89A5
square
#842CA5 #A5472C #4DA52C #2C89A5
split-complementary
#842CA5 #89A52C #2CA547
monochromatic
#371244 #5D1F75 #842CA5 #A742CD #BD72D9

Accessibility & contrast

On white

7.28
#842CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#842CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CA5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CA5#FFFFFF#000000##FFFFFF
##842CA51.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2759A2
Tritanopia (blue-blind)
#814666
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842ca5;
/* rgb */ color: rgb(132, 44, 165);
/* oklch */ color: oklch(48.0% 0.191 315.0);
Tailwind
colors: {
  custom: {
    50: '#ac6ec0',
    500: '#842ca5',
    950: '#000000',
  },
}
SCSS
$custom: #842ca5;
$custom-light: #ac6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#842ca5",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 283.636,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47956,
    "c": 0.19101,
    "h": 315
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#842CA5
secondary
#83C16C
accent
#E14771
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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