#842CB9#842CB9

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

Color values

HEX#842CB9
RGBrgb(132, 44, 185)
HSLhsl(277, 62%, 45%)
HSVhsv(277, 76%, 73%)
CMYKcmyk(28.6%, 76.2%, 0%, 27.5%)
CIE-LABlab(38.22, 59.54, -57.51)
CIE-LCHlch(38.22, 82.78, 315.99°)
OKLaboklab(49.42% 0.1318 -0.1632)
OKLCHoklch(49.42% 0.21 308.9)
XYZxyz(19.1716, 10.2100, 46.8503)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CB9 #61B92C
analogous
#3E2CB9 #842CB9 #B92CA7
triadic
#842CB9 #B9842C #2CB984
tetradic
#842CB9 #B93E2C #61B92C #2CA7B9
square
#842CB9 #B93E2C #61B92C #2CA7B9
split-complementary
#842CB9 #A7B92C #2CB93E
monochromatic
#3D1456 #612088 #842CB9 #A24DD5 #BC7FE1

Accessibility & contrast

On white

6.90
#842CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842CB9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CB9#FFFFFF#000000##FFFFFF
##842CB91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842cb9;
/* rgb */ color: rgb(132, 44, 185);
/* oklch */ color: oklch(49.4% 0.210 308.9);
Tailwind
colors: {
  custom: {
    50: '#ad6fcf',
    500: '#842cb9',
    950: '#000000',
  },
}
SCSS
$custom: #842cb9;
$custom-light: #ad6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#842cb9",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 277.447,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49418,
    "c": 0.20982,
    "h": 308.9
  },
  "luminance": 0.1021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #842CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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