#842CC7#842CC7

#842CC7 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.5% C 0.223 H 305.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#842CC7
RGBrgb(132, 44, 199)
HSLhsl(274, 64%, 48%)
HSVhsv(274, 78%, 78%)
CMYKcmyk(33.7%, 77.9%, 0%, 22%)
CIE-LABlab(39.29, 62.60, -63.97)
CIE-LCHlch(39.29, 89.50, 314.38°)
OKLaboklab(50.51% 0.1287 -0.1822)
OKLCHoklch(50.51% 0.223 305.2)
XYZxyz(20.7229, 10.8306, 55.0205)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CC7 #6FC72C
analogous
#372CC7 #842CC7 #C72CBC
triadic
#842CC7 #C7842C #2CC784
tetradic
#842CC7 #C7372C #6FC72C #2CBCC7
square
#842CC7 #C7372C #6FC72C #2CBCC7
split-complementary
#842CC7 #BCC72C #2CC737
monochromatic
#421663 #632195 #842CC7 #A156DA #BD89E5

Accessibility & contrast

On white

6.63
#842CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#842CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CC7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CC7#FFFFFF#000000##FFFFFF
##842CC71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005DC4
Tritanopia (blue-blind)
#775479
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842cc7;
/* rgb */ color: rgb(132, 44, 199);
/* oklch */ color: oklch(50.5% 0.223 305.2);
Tailwind
colors: {
  custom: {
    50: '#ae6fd9',
    500: '#842cc7',
    950: '#000000',
  },
}
SCSS
$custom: #842cc7;
$custom-light: #ae6fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#842cc7",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 199
  },
  "hsl": {
    "h": 274.065,
    "s": 63.786,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5051,
    "c": 0.22306,
    "h": 305.2
  },
  "luminance": 0.1083
}

Semantic roles & 50–950 ramp

primary
#842CC7
secondary
#A2CF80
accent
#E74189
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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