#842DC2#842DC2

#842DC2 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.217 H 306.4°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#842DC2
RGBrgb(132, 45, 194)
HSLhsl(275, 62%, 47%)
HSVhsv(275, 77%, 76%)
CMYKcmyk(32%, 76.8%, 0%, 23.9%)
CIE-LABlab(39.03, 61.12, -61.47)
CIE-LCHlch(39.03, 86.69, 314.84°)
OKLaboklab(50.21% 0.129 -0.1749)
OKLCHoklch(50.21% 0.217 306.4)
XYZxyz(20.1896, 10.6776, 52.0258)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DC2 #6BC22D
analogous
#3A2DC2 #842DC2 #C22DB5
triadic
#842DC2 #C2842D #2DC284
tetradic
#842DC2 #C23A2D #6BC22D #2DB5C2
square
#842DC2 #C23A2D #6BC22D #2DB5C2
split-complementary
#842DC2 #B5C22D #2DC23A
monochromatic
#40165F #622190 #842DC2 #A155D7 #BC86E3

Accessibility & contrast

On white

6.70
#842DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#842DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DC2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DC2#FFFFFF#000000##FFFFFF
##842DC21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#795377
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842dc2;
/* rgb */ color: rgb(132, 45, 194);
/* oklch */ color: oklch(50.2% 0.217 306.4);
Tailwind
colors: {
  custom: {
    50: '#ad70d5',
    500: '#842dc2',
    950: '#000000',
  },
}
SCSS
$custom: #842dc2;
$custom-light: #ad70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#842dc2",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 275.034,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50205,
    "c": 0.21734,
    "h": 306.4
  },
  "luminance": 0.10677
}

Semantic roles & 50–950 ramp

primary
#842DC2
secondary
#9FCD7E
accent
#E54286
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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