#842DB5#842DB5

#842DB5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.205 H 310.0°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#842DB5
RGBrgb(132, 45, 181)
HSLhsl(278, 60%, 44%)
HSVhsv(278, 75%, 71%)
CMYKcmyk(27.1%, 75.1%, 0%, 29%)
CIE-LABlab(38.05, 58.29, -55.41)
CIE-LCHlch(38.05, 80.43, 316.45°)
OKLaboklab(49.21% 0.1317 -0.1571)
OKLCHoklch(49.21% 0.205 310)
XYZxyz(18.7929, 10.1189, 44.6703)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB5 #5EB52D
analogous
#402DB5 #842DB5 #B52DA2
triadic
#842DB5 #B5842D #2DB584
tetradic
#842DB5 #B5402D #5EB52D #2DA2B5
square
#842DB5 #B5402D #5EB52D #2DA2B5
split-complementary
#842DB5 #A2B52D #2DB540
monochromatic
#3D1553 #602184 #842DB5 #A24DD3 #BC7EDF

Accessibility & contrast

On white

6.94
#842DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#842DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DB5
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB5#FFFFFF#000000##FFFFFF
##842DB51.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#075BB2
Tritanopia (blue-blind)
#7D4D6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842db5;
/* rgb */ color: rgb(132, 45, 181);
/* oklch */ color: oklch(49.2% 0.205 310.0);
Tailwind
colors: {
  custom: {
    50: '#ad6fcc',
    500: '#842db5',
    950: '#000000',
  },
}
SCSS
$custom: #842db5;
$custom-light: #ad6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#842db5",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 278.382,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49211,
    "c": 0.20496,
    "h": 310
  },
  "luminance": 0.10119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #842DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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