#842CC5#842CC5

#842CC5 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.221 H 305.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#842CC5
RGBrgb(132, 44, 197)
HSLhsl(275, 63%, 47%)
HSVhsv(275, 78%, 77%)
CMYKcmyk(33%, 77.7%, 0%, 22.7%)
CIE-LABlab(39.14, 62.16, -63.06)
CIE-LCHlch(39.14, 88.54, 314.59°)
OKLaboklab(50.35% 0.1292 -0.1795)
OKLCHoklch(50.35% 0.221 305.7)
XYZxyz(20.4922, 10.7383, 53.8056)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CC5 #6DC52C
analogous
#382CC5 #842CC5 #C52CB9
triadic
#842CC5 #C5842C #2CC584
tetradic
#842CC5 #C5382C #6DC52C #2CB9C5
square
#842CC5 #C5382C #6DC52C #2CB9C5
split-complementary
#842CC5 #B9C52C #2CC538
monochromatic
#411661 #622193 #842CC5 #A155D9 #BD87E4

Accessibility & contrast

On white

6.67
#842CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842CC5
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CC5#FFFFFF#000000##FFFFFF
##842CC51.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#005CC2
Tritanopia (blue-blind)
#785478
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842cc5;
/* rgb */ color: rgb(132, 44, 197);
/* oklch */ color: oklch(50.3% 0.221 305.7);
Tailwind
colors: {
  custom: {
    50: '#ae6fd8',
    500: '#842cc5',
    950: '#000000',
  },
}
SCSS
$custom: #842cc5;
$custom-light: #ae6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#842cc5",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 197
  },
  "hsl": {
    "h": 274.51,
    "s": 63.485,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5035,
    "c": 0.22117,
    "h": 305.7
  },
  "luminance": 0.10738
}

Semantic roles & 50–950 ramp

primary
#842CC5
secondary
#A0CE7F
accent
#E74187
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #842CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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