#842EC3#842EC3

#842EC3 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.217 H 306.1°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#842EC3
RGBrgb(132, 46, 195)
HSLhsl(275, 62%, 47%)
HSVhsv(275, 76%, 76%)
CMYKcmyk(32.3%, 76.4%, 0%, 23.5%)
CIE-LABlab(39.24, 60.97, -61.72)
CIE-LCHlch(39.24, 86.75, 314.65°)
OKLaboklab(50.38% 0.128 -0.1756)
OKLCHoklch(50.38% 0.217 306.1)
XYZxyz(20.3409, 10.7998, 52.6322)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EC3 #6DC32E
analogous
#3A2EC3 #842EC3 #C32EB8
triadic
#842EC3 #C3842E #2EC384
tetradic
#842EC3 #C33A2E #6DC32E #2EB8C3
square
#842EC3 #C33A2E #6DC32E #2EB8C3
split-complementary
#842EC3 #B8C32E #2EC33A
monochromatic
#411760 #622291 #842EC3 #A157D7 #BD88E3

Accessibility & contrast

On white

6.65
#842EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#842EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EC3
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EC3#FFFFFF#000000##FFFFFF
##842EC31.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#795477
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842ec3;
/* rgb */ color: rgb(132, 46, 195);
/* oklch */ color: oklch(50.4% 0.217 306.1);
Tailwind
colors: {
  custom: {
    50: '#ad70d6',
    500: '#842ec3',
    950: '#000000',
  },
}
SCSS
$custom: #842ec3;
$custom-light: #ad70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#842ec3",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 195
  },
  "hsl": {
    "h": 274.631,
    "s": 61.826,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50376,
    "c": 0.21728,
    "h": 306.1
  },
  "luminance": 0.108
}

Semantic roles & 50–950 ramp

primary
#842EC3
secondary
#A0CD80
accent
#E54387
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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