#842EC8#842EC8

#842EC8 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.222 H 304.8°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#842EC8
RGBrgb(132, 46, 200)
HSLhsl(274, 63%, 48%)
HSVhsv(274, 77%, 78%)
CMYKcmyk(34%, 77%, 0%, 21.6%)
CIE-LABlab(39.63, 62.08, -64.00)
CIE-LCHlch(39.63, 89.16, 314.13°)
OKLaboklab(50.77% 0.1268 -0.1823)
OKLCHoklch(50.77% 0.222 304.8)
XYZxyz(20.9157, 11.0298, 55.6595)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EC8 #72C82E
analogous
#372EC8 #842EC8 #C82EBF
triadic
#842EC8 #C8842E #2EC884
tetradic
#842EC8 #C8372E #72C82E #2EBFC8
square
#842EC8 #C8372E #72C82E #2EBFC8
split-complementary
#842EC8 #BFC82E #2EC837
monochromatic
#421764 #632396 #842EC8 #A15AD9 #BD8CE5

Accessibility & contrast

On white

6.55
#842EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#842EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EC8
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EC8#FFFFFF#000000##FFFFFF
##842EC81.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#77567A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842ec8;
/* rgb */ color: rgb(132, 46, 200);
/* oklch */ color: oklch(50.8% 0.222 304.8);
Tailwind
colors: {
  custom: {
    50: '#ae70da',
    500: '#842ec8',
    950: '#000000',
  },
}
SCSS
$custom: #842ec8;
$custom-light: #ae70da;
$custom-dark: #000000;
JSON
{
  "hex": "#842ec8",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 273.506,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5077,
    "c": 0.22208,
    "h": 304.8
  },
  "luminance": 0.1103
}

Semantic roles & 50–950 ramp

primary
#842EC8
secondary
#A4CF83
accent
#E6428A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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