#842DB6#842DB6

#842DB6 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.206 H 309.7°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#842DB6
RGBrgb(132, 45, 182)
HSLhsl(278, 60%, 45%)
HSVhsv(278, 75%, 71%)
CMYKcmyk(27.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(38.13, 58.51, -55.88)
CIE-LCHlch(38.13, 80.91, 316.31°)
OKLaboklab(49.29% 0.1315 -0.1585)
OKLCHoklch(49.29% 0.206 309.7)
XYZxyz(18.8959, 10.1601, 45.2126)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB6 #5FB62D
analogous
#402DB6 #842DB6 #B62DA4
triadic
#842DB6 #B6842D #2DB684
tetradic
#842DB6 #B6402D #5FB62D #2DA4B6
square
#842DB6 #B6402D #5FB62D #2DA4B6
split-complementary
#842DB6 #A4B62D #2DB640
monochromatic
#3D1554 #602185 #842DB6 #A24DD3 #BC7EDF

Accessibility & contrast

On white

6.93
#842DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#842DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DB6
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB6#FFFFFF#000000##FFFFFF
##842DB61.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#025BB3
Tritanopia (blue-blind)
#7D4E70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842db6;
/* rgb */ color: rgb(132, 45, 182);
/* oklch */ color: oklch(49.3% 0.206 309.7);
Tailwind
colors: {
  custom: {
    50: '#ad6fcd',
    500: '#842db6',
    950: '#000000',
  },
}
SCSS
$custom: #842db6;
$custom-light: #ad6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#842db6",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 278.102,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49285,
    "c": 0.20592,
    "h": 309.7
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#842DB6
secondary
#94C877
accent
#E3447E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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