#842CC1#842CC1

#842CC1 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.217 H 306.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#842CC1
RGBrgb(132, 44, 193)
HSLhsl(275, 63%, 46%)
HSVhsv(275, 77%, 76%)
CMYKcmyk(31.6%, 77.2%, 0%, 24.3%)
CIE-LABlab(38.82, 61.28, -61.23)
CIE-LCHlch(38.82, 86.62, 315.02°)
OKLaboklab(50.04% 0.1301 -0.1741)
OKLCHoklch(50.04% 0.217 306.8)
XYZxyz(20.0399, 10.5574, 51.4238)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CC1 #69C12C
analogous
#3A2CC1 #842CC1 #C12CB4
triadic
#842CC1 #C1842C #2CC184
tetradic
#842CC1 #C13A2C #69C12C #2CB4C1
square
#842CC1 #C13A2C #69C12C #2CB4C1
split-complementary
#842CC1 #B4C12C #2CC13A
monochromatic
#40155D #62218F #842CC1 #A153D8 #BC84E3

Accessibility & contrast

On white

6.75
#842CC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#842CC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CC1
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CC1#FFFFFF#000000##FFFFFF
##842CC11.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#795276
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842cc1;
/* rgb */ color: rgb(132, 44, 193);
/* oklch */ color: oklch(50.0% 0.217 306.8);
Tailwind
colors: {
  custom: {
    50: '#ad6fd5',
    500: '#842cc1',
    950: '#000000',
  },
}
SCSS
$custom: #842cc1;
$custom-light: #ad6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#842cc1",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 193
  },
  "hsl": {
    "h": 275.436,
    "s": 62.869,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50035,
    "c": 0.21738,
    "h": 306.8
  },
  "luminance": 0.10557
}

Semantic roles & 50–950 ramp

primary
#842CC1
secondary
#9DCC7D
accent
#E64285
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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