#842CB5#842CB5

#842CB5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.1% C 0.206 H 310.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#842CB5
RGBrgb(132, 44, 181)
HSLhsl(279, 61%, 44%)
HSVhsv(279, 76%, 71%)
CMYKcmyk(27.1%, 75.7%, 0%, 29%)
CIE-LABlab(37.92, 58.68, -55.63)
CIE-LCHlch(37.92, 80.86, 316.53°)
OKLaboklab(49.12% 0.1326 -0.1577)
OKLCHoklch(49.12% 0.206 310.1)
XYZxyz(18.7552, 10.0435, 44.6577)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CB5 #5DB52C
analogous
#402CB5 #842CB5 #B52CA2
triadic
#842CB5 #B5842C #2CB584
tetradic
#842CB5 #B5402C #5DB52C #2CA2B5
square
#842CB5 #B5402C #5DB52C #2CA2B5
split-complementary
#842CB5 #A2B52C #2CB540
monochromatic
#3C1453 #602084 #842CB5 #A24BD3 #BC7CDF

Accessibility & contrast

On white

6.98
#842CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#842CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CB5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CB5#FFFFFF#000000##FFFFFF
##842CB51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#045BB2
Tritanopia (blue-blind)
#7D4D6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842cb5;
/* rgb */ color: rgb(132, 44, 181);
/* oklch */ color: oklch(49.1% 0.206 310.1);
Tailwind
colors: {
  custom: {
    50: '#ad6fcc',
    500: '#842cb5',
    950: '#000000',
  },
}
SCSS
$custom: #842cb5;
$custom-light: #ad6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#842cb5",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 278.54,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49116,
    "c": 0.20604,
    "h": 310.1
  },
  "luminance": 0.10043
}

Semantic roles & 50–950 ramp

primary
#842CB5
secondary
#93C875
accent
#E4447D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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