#842CCC#842CCC

#842CCC is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.9% C 0.228 H 304.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#842CCC
RGBrgb(132, 44, 204)
HSLhsl(273, 65%, 49%)
HSVhsv(273, 78%, 80%)
CMYKcmyk(35.3%, 78.4%, 0%, 20%)
CIE-LABlab(39.69, 63.71, -66.22)
CIE-LCHlch(39.69, 91.90, 313.89°)
OKLaboklab(50.91% 0.1274 -0.1888)
OKLCHoklch(50.91% 0.228 304)
XYZxyz(21.3130, 11.0666, 58.1283)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CCC #74CC2C
analogous
#342CCC #842CCC #CC2CC4
triadic
#842CCC #CC842C #2CCC84
tetradic
#842CCC #CC342C #74CC2C #2CC4CC
square
#842CCC #CC342C #74CC2C #2CC4CC
split-complementary
#842CCC #C4CC2C #2CCC34
monochromatic
#431667 #63219A #842CCC #A15ADB #BE8CE6

Accessibility & contrast

On white

6.54
#842CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842CCC
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CCC#FFFFFF#000000##FFFFFF
##842CCC1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#76577C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842ccc;
/* rgb */ color: rgb(132, 44, 204);
/* oklch */ color: oklch(50.9% 0.228 304.0);
Tailwind
colors: {
  custom: {
    50: '#ae70dd',
    500: '#842ccc',
    950: '#000000',
  },
}
SCSS
$custom: #842ccc;
$custom-light: #ae70dd;
$custom-dark: #000000;
JSON
{
  "hex": "#842ccc",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 204
  },
  "hsl": {
    "h": 273,
    "s": 64.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50912,
    "c": 0.2278,
    "h": 304
  },
  "luminance": 0.11067
}

Semantic roles & 50–950 ramp

primary
#842CCC
secondary
#A6D083
accent
#E8408C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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