#842AC5#842AC5

#842AC5 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.223 H 305.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#842AC5
RGBrgb(132, 42, 197)
HSLhsl(275, 65%, 47%)
HSVhsv(275, 79%, 77%)
CMYKcmyk(33%, 78.7%, 0%, 22.7%)
CIE-LABlab(38.89, 62.88, -63.46)
CIE-LCHlch(38.89, 89.34, 314.74°)
OKLaboklab(50.18% 0.1308 -0.1807)
OKLCHoklch(50.18% 0.223 305.9)
XYZxyz(20.4195, 10.5929, 53.7814)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AC5 #6BC52A
analogous
#372AC5 #842AC5 #C52AB9
triadic
#842AC5 #C5842A #2AC584
tetradic
#842AC5 #C5372A #6BC52A #2AB9C5
square
#842AC5 #C5372A #6BC52A #2AB9C5
split-complementary
#842AC5 #B9C52A #2AC537
monochromatic
#401460 #621F93 #842AC5 #A152DA #BC85E5

Accessibility & contrast

On white

6.73
#842AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#842AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842AC5
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AC5#FFFFFF#000000##FFFFFF
##842AC51.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842ac5;
/* rgb */ color: rgb(132, 42, 197);
/* oklch */ color: oklch(50.2% 0.223 305.9);
Tailwind
colors: {
  custom: {
    50: '#ae6ed8',
    500: '#842ac5',
    950: '#000000',
  },
}
SCSS
$custom: #842ac5;
$custom-light: #ae6ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#842ac5",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 274.839,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50176,
    "c": 0.22306,
    "h": 305.9
  },
  "luminance": 0.10593
}

Semantic roles & 50–950 ramp

primary
#842AC5
secondary
#9FCE7D
accent
#E84086
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #842AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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