#842DC9#842DC9

#842DC9 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.224 H 304.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#842DC9
RGBrgb(132, 45, 201)
HSLhsl(273, 63%, 48%)
HSVhsv(273, 78%, 79%)
CMYKcmyk(34.3%, 77.6%, 0%, 21.2%)
CIE-LABlab(39.58, 62.68, -64.67)
CIE-LCHlch(39.58, 90.06, 314.11°)
OKLaboklab(50.76% 0.1274 -0.1843)
OKLCHoklch(50.76% 0.224 304.7)
XYZxyz(20.9943, 10.9994, 56.2641)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DC9 #72C92D
analogous
#362DC9 #842DC9 #C92DC0
triadic
#842DC9 #C9842D #2DC984
tetradic
#842DC9 #C9362D #72C92D #2DC0C9
square
#842DC9 #C9362D #72C92D #2DC0C9
split-complementary
#842DC9 #C0C92D #2DC936
monochromatic
#421765 #632297 #842DC9 #A159DA #BD8BE5

Accessibility & contrast

On white

6.56
#842DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#842DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DC9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DC9#FFFFFF#000000##FFFFFF
##842DC91.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#005DC6
Tritanopia (blue-blind)
#77567B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842dc9;
/* rgb */ color: rgb(132, 45, 201);
/* oklch */ color: oklch(50.8% 0.224 304.7);
Tailwind
colors: {
  custom: {
    50: '#ae70da',
    500: '#842dc9',
    950: '#000000',
  },
}
SCSS
$custom: #842dc9;
$custom-light: #ae70da;
$custom-dark: #000000;
JSON
{
  "hex": "#842dc9",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 273.462,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50759,
    "c": 0.22401,
    "h": 304.7
  },
  "luminance": 0.10999
}

Semantic roles & 50–950 ramp

primary
#842DC9
secondary
#A4CF83
accent
#E6418A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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