#842EC5#842EC5

#842EC5 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.219 H 305.6°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#842EC5
RGBrgb(132, 46, 197)
HSLhsl(274, 62%, 48%)
HSVhsv(274, 77%, 77%)
CMYKcmyk(33%, 76.6%, 0%, 22.7%)
CIE-LABlab(39.40, 61.41, -62.63)
CIE-LCHlch(39.40, 87.72, 314.43°)
OKLaboklab(50.53% 0.1275 -0.1783)
OKLCHoklch(50.53% 0.219 305.6)
XYZxyz(20.5685, 10.8909, 53.8311)
Luminance0.1089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EC5 #6FC52E
analogous
#382EC5 #842EC5 #C52EBB
triadic
#842EC5 #C5842E #2EC584
tetradic
#842EC5 #C5382E #6FC52E #2EBBC5
square
#842EC5 #C5382E #6FC52E #2EBBC5
split-complementary
#842EC5 #BBC52E #2EC538
monochromatic
#421762 #632293 #842EC5 #A158D8 #BD8AE4

Accessibility & contrast

On white

6.61
#842EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#842EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EC5
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EC5#FFFFFF#000000##FFFFFF
##842EC51.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005DC2
Tritanopia (blue-blind)
#785579
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842ec5;
/* rgb */ color: rgb(132, 46, 197);
/* oklch */ color: oklch(50.5% 0.219 305.6);
Tailwind
colors: {
  custom: {
    50: '#ae70d8',
    500: '#842ec5',
    950: '#000000',
  },
}
SCSS
$custom: #842ec5;
$custom-light: #ae70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#842ec5",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 274.172,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50533,
    "c": 0.2192,
    "h": 305.6
  },
  "luminance": 0.10891
}

Semantic roles & 50–950 ramp

primary
#842EC5
secondary
#A2CE81
accent
#E54389
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #842EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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