#842CA4#842CA4

#842CA4 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.9% C 0.190 H 315.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#842CA4
RGBrgb(132, 44, 164)
HSLhsl(284, 58%, 41%)
HSVhsv(284, 73%, 64%)
CMYKcmyk(19.5%, 73.2%, 0%, 35.7%)
CIE-LABlab(36.72, 55.11, -47.43)
CIE-LCHlch(36.72, 72.71, 319.28°)
OKLaboklab(47.89% 0.1352 -0.1336)
OKLCHoklch(47.89% 0.19 315.3)
XYZxyz(17.1162, 9.3879, 36.0252)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CA4 #4CA42C
analogous
#482CA4 #842CA4 #A42C88
triadic
#842CA4 #A4842C #2CA484
tetradic
#842CA4 #A4482C #4CA42C #2C88A4
square
#842CA4 #A4482C #4CA42C #2C88A4
split-complementary
#842CA4 #88A42C #2CA448
monochromatic
#361243 #5D1F74 #842CA4 #A741CC #BD71D9

Accessibility & contrast

On white

7.30
#842CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842CA4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CA4#FFFFFF#000000##FFFFFF
##842CA41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2959A1
Tritanopia (blue-blind)
#824565
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842ca4;
/* rgb */ color: rgb(132, 44, 164);
/* oklch */ color: oklch(47.9% 0.190 315.3);
Tailwind
colors: {
  custom: {
    50: '#ac6ec0',
    500: '#842ca4',
    950: '#000000',
  },
}
SCSS
$custom: #842ca4;
$custom-light: #ac6ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#842ca4",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 284,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47886,
    "c": 0.19008,
    "h": 315.3
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#842CA4
secondary
#82C06B
accent
#E14770
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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