#842CC3#842CC3

#842CC3 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.219 H 306.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#842CC3
RGBrgb(132, 44, 195)
HSLhsl(275, 63%, 47%)
HSVhsv(275, 77%, 76%)
CMYKcmyk(32.3%, 77.4%, 0%, 23.5%)
CIE-LABlab(38.98, 61.72, -62.14)
CIE-LCHlch(38.98, 87.58, 314.80°)
OKLaboklab(50.19% 0.1296 -0.1768)
OKLCHoklch(50.19% 0.219 306.2)
XYZxyz(20.2646, 10.6472, 52.6067)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CC3 #6BC32C
analogous
#392CC3 #842CC3 #C32CB7
triadic
#842CC3 #C3842C #2CC384
tetradic
#842CC3 #C3392C #6BC32C #2CB7C3
square
#842CC3 #C3392C #6BC32C #2CB7C3
split-complementary
#842CC3 #B7C32C #2CC339
monochromatic
#40155F #622191 #842CC3 #A154D8 #BC86E4

Accessibility & contrast

On white

6.71
#842CC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#842CC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CC3
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CC3#FFFFFF#000000##FFFFFF
##842CC31.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#795377
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842cc3;
/* rgb */ color: rgb(132, 44, 195);
/* oklch */ color: oklch(50.2% 0.219 306.2);
Tailwind
colors: {
  custom: {
    50: '#ae6fd6',
    500: '#842cc3',
    950: '#000000',
  },
}
SCSS
$custom: #842cc3;
$custom-light: #ae6fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#842cc3",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 195
  },
  "hsl": {
    "h": 274.967,
    "s": 63.18,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50192,
    "c": 0.21928,
    "h": 306.2
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#842CC3
secondary
#9FCD7E
accent
#E64286
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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