#842BCC#842BCC

#842BCC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.229 H 304.1°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#842BCC
RGBrgb(132, 43, 204)
HSLhsl(273, 65%, 48%)
HSVhsv(273, 79%, 80%)
CMYKcmyk(35.3%, 78.9%, 0%, 20%)
CIE-LABlab(39.57, 64.07, -66.43)
CIE-LCHlch(39.57, 92.29, 313.97°)
OKLaboklab(50.83% 0.1282 -0.1894)
OKLCHoklch(50.83% 0.229 304.1)
XYZxyz(21.2761, 10.9930, 58.1160)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842BCC #73CC2B
analogous
#342BCC #842BCC #CC2BC3
triadic
#842BCC #CC842B #2BCC84
tetradic
#842BCC #CC342B #73CC2B #2BC3CC
square
#842BCC #CC342B #73CC2B #2BC3CC
split-complementary
#842BCC #C3CC2B #2BCC34
monochromatic
#431667 #632099 #842BCC #A158DC #BE8BE7

Accessibility & contrast

On white

6.57
#842BCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#842BCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842BCC
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842BCC#FFFFFF#000000##FFFFFF
##842BCC1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#76567C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #842bcc;
/* rgb */ color: rgb(132, 43, 204);
/* oklch */ color: oklch(50.8% 0.229 304.1);
Tailwind
colors: {
  custom: {
    50: '#ae6fdd',
    500: '#842bcc',
    950: '#000000',
  },
}
SCSS
$custom: #842bcc;
$custom-light: #ae6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#842bcc",
  "rgb": {
    "r": 132,
    "g": 43,
    "b": 204
  },
  "hsl": {
    "h": 273.168,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50826,
    "c": 0.22872,
    "h": 304.1
  },
  "luminance": 0.10993
}

Semantic roles & 50–950 ramp

primary
#842BCC
secondary
#A5D082
accent
#E8408B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842BCC

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

Preview Lab → · Contrast checker → · Palette generator →

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