#842AC6#842AC6

#842AC6 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.3% C 0.224 H 305.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#842AC6
RGBrgb(132, 42, 198)
HSLhsl(275, 65%, 47%)
HSVhsv(275, 79%, 78%)
CMYKcmyk(33.3%, 78.8%, 0%, 22.4%)
CIE-LABlab(38.97, 63.10, -63.92)
CIE-LCHlch(38.97, 89.82, 314.63°)
OKLaboklab(50.26% 0.1305 -0.182)
OKLCHoklch(50.26% 0.224 305.6)
XYZxyz(20.5344, 10.6388, 54.3868)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AC6 #6CC62A
analogous
#362AC6 #842AC6 #C62ABA
triadic
#842AC6 #C6842A #2AC684
tetradic
#842AC6 #C6362A #6CC62A #2ABAC6
square
#842AC6 #C6362A #6CC62A #2ABAC6
split-complementary
#842AC6 #BAC62A #2AC636
monochromatic
#411561 #621F94 #842AC6 #A153DA #BD85E5

Accessibility & contrast

On white

6.71
#842AC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#842AC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842AC6
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AC6#FFFFFF#000000##FFFFFF
##842AC61.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#005CC3
Tritanopia (blue-blind)
#785378
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842ac6;
/* rgb */ color: rgb(132, 42, 198);
/* oklch */ color: oklch(50.3% 0.224 305.6);
Tailwind
colors: {
  custom: {
    50: '#ae6ed8',
    500: '#842ac6',
    950: '#000000',
  },
}
SCSS
$custom: #842ac6;
$custom-light: #ae6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#842ac6",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 198
  },
  "hsl": {
    "h": 274.615,
    "s": 65,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50256,
    "c": 0.224,
    "h": 305.6
  },
  "luminance": 0.10639
}

Semantic roles & 50–950 ramp

primary
#842AC6
secondary
#A0CE7D
accent
#E84087
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842AC6

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

Preview Lab → · Contrast checker → · Palette generator →

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