#842DB7#842DB7

#842DB7 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.207 H 309.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#842DB7
RGBrgb(132, 45, 183)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 75%, 72%)
CMYKcmyk(27.9%, 75.4%, 0%, 28.2%)
CIE-LABlab(38.20, 58.72, -56.36)
CIE-LCHlch(38.20, 81.39, 316.18°)
OKLaboklab(49.36% 0.1313 -0.1598)
OKLCHoklch(49.36% 0.207 309.4)
XYZxyz(18.9996, 10.2016, 45.7588)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB7 #60B72D
analogous
#3F2DB7 #842DB7 #B72DA5
triadic
#842DB7 #B7842D #2DB784
tetradic
#842DB7 #B73F2D #60B72D #2DA5B7
square
#842DB7 #B73F2D #60B72D #2DA5B7
split-complementary
#842DB7 #A5B72D #2DB73F
monochromatic
#3D1555 #612186 #842DB7 #A24ED3 #BC7FDF

Accessibility & contrast

On white

6.91
#842DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#842DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DB7
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB7#FFFFFF#000000##FFFFFF
##842DB71.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#005BB4
Tritanopia (blue-blind)
#7C4E70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842db7;
/* rgb */ color: rgb(132, 45, 183);
/* oklch */ color: oklch(49.4% 0.207 309.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fcd',
    500: '#842db7',
    950: '#000000',
  },
}
SCSS
$custom: #842db7;
$custom-light: #ad6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#842db7",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 277.826,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4936,
    "c": 0.20687,
    "h": 309.4
  },
  "luminance": 0.10201
}

Semantic roles & 50–950 ramp

primary
#842DB7
secondary
#95C878
accent
#E4447F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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