#842DB8#842DB8

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

Color values

HEX#842DB8
RGBrgb(132, 45, 184)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 76%, 72%)
CMYKcmyk(28.3%, 75.5%, 0%, 27.8%)
CIE-LABlab(38.28, 58.94, -56.83)
CIE-LCHlch(38.28, 81.87, 316.05°)
OKLaboklab(49.44% 0.1311 -0.1612)
OKLCHoklch(49.44% 0.208 309.1)
XYZxyz(19.1041, 10.2434, 46.3089)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DB8 #61B82D
analogous
#3E2DB8 #842DB8 #B82DA7
triadic
#842DB8 #B8842D #2DB884
tetradic
#842DB8 #B83E2D #61B82D #2DA7B8
square
#842DB8 #B83E2D #61B82D #2DA7B8
split-complementary
#842DB8 #A7B82D #2DB83E
monochromatic
#3D1556 #612187 #842DB8 #A24ED4 #BC80E0

Accessibility & contrast

On white

6.89
#842DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#842DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842DB8
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DB8#FFFFFF#000000##FFFFFF
##842DB81.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#7C4E71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842db8;
/* rgb */ color: rgb(132, 45, 184);
/* oklch */ color: oklch(49.4% 0.208 309.1);
Tailwind
colors: {
  custom: {
    50: '#ad6fce',
    500: '#842db8',
    950: '#000000',
  },
}
SCSS
$custom: #842db8;
$custom-light: #ad6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#842db8",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 277.554,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49436,
    "c": 0.20782,
    "h": 309.1
  },
  "luminance": 0.10243
}

Semantic roles & 50–950 ramp

primary
#842DB8
secondary
#96C978
accent
#E44480
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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