#842EC2#842EC2

#842EC2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.3% C 0.216 H 306.3°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#842EC2
RGBrgb(132, 46, 194)
HSLhsl(275, 62%, 47%)
HSVhsv(275, 76%, 76%)
CMYKcmyk(32%, 76.3%, 0%, 23.9%)
CIE-LABlab(39.16, 60.74, -61.26)
CIE-LCHlch(39.16, 86.27, 314.76°)
OKLaboklab(50.3% 0.1282 -0.1743)
OKLCHoklch(50.3% 0.216 306.3)
XYZxyz(20.2282, 10.7548, 52.0387)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EC2 #6CC22E
analogous
#3A2EC2 #842EC2 #C22EB6
triadic
#842EC2 #C2842E #2EC284
tetradic
#842EC2 #C23A2E #6CC22E #2EB6C2
square
#842EC2 #C23A2E #6CC22E #2EB6C2
split-complementary
#842EC2 #B6C22E #2EC23A
monochromatic
#41175F #622291 #842EC2 #A156D7 #BD88E3

Accessibility & contrast

On white

6.66
#842EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#842EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EC2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EC2#FFFFFF#000000##FFFFFF
##842EC21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#005DBF
Tritanopia (blue-blind)
#795377
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842ec2;
/* rgb */ color: rgb(132, 46, 194);
/* oklch */ color: oklch(50.3% 0.216 306.3);
Tailwind
colors: {
  custom: {
    50: '#ad70d5',
    500: '#842ec2',
    950: '#000000',
  },
}
SCSS
$custom: #842ec2;
$custom-light: #ad70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#842ec2",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 274.865,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.21632,
    "h": 306.3
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #842EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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