#842ECC#842ECC

#842ECC is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.1% C 0.226 H 303.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#842ECC
RGBrgb(132, 46, 204)
HSLhsl(273, 63%, 49%)
HSVhsv(273, 77%, 80%)
CMYKcmyk(35.3%, 77.5%, 0%, 20%)
CIE-LABlab(39.95, 62.98, -65.81)
CIE-LCHlch(39.95, 91.09, 313.74°)
OKLaboklab(51.09% 0.1258 -0.1876)
OKLCHoklch(51.09% 0.226 303.8)
XYZxyz(21.3893, 11.2192, 58.1537)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842ECC #76CC2E
analogous
#352ECC #842ECC #CC2EC5
triadic
#842ECC #CC842E #2ECC84
tetradic
#842ECC #CC352E #76CC2E #2EC5CC
square
#842ECC #CC352E #76CC2E #2EC5CC
split-complementary
#842ECC #C5CC2E #2ECC35
monochromatic
#431768 #64239A #842ECC #A15DDA #BE8FE6

Accessibility & contrast

On white

6.47
#842ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#842ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842ECC
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842ECC#FFFFFF#000000##FFFFFF
##842ECC1.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#76587D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #842ecc;
/* rgb */ color: rgb(132, 46, 204);
/* oklch */ color: oklch(51.1% 0.226 303.8);
Tailwind
colors: {
  custom: {
    50: '#ae71dd',
    500: '#842ecc',
    950: '#000000',
  },
}
SCSS
$custom: #842ecc;
$custom-light: #ae71dd;
$custom-dark: #000000;
JSON
{
  "hex": "#842ecc",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 204
  },
  "hsl": {
    "h": 272.658,
    "s": 63.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5109,
    "c": 0.22591,
    "h": 303.8
  },
  "luminance": 0.11219
}

Semantic roles & 50–950 ramp

primary
#842ECC
secondary
#A8D086
accent
#E6428D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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