#842FCC#842FCC

#842FCC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.225 H 303.8°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#842FCC
RGBrgb(132, 47, 204)
HSLhsl(272, 63%, 49%)
HSVhsv(272, 77%, 80%)
CMYKcmyk(35.3%, 77%, 0%, 20%)
CIE-LABlab(40.08, 62.60, -65.59)
CIE-LCHlch(40.08, 90.67, 313.66°)
OKLaboklab(51.18% 0.125 -0.187)
OKLCHoklch(51.18% 0.225 303.8)
XYZxyz(21.4288, 11.2982, 58.1669)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842FCC #77CC2F
analogous
#352FCC #842FCC #CC2FC6
triadic
#842FCC #CC842F #2FCC84
tetradic
#842FCC #CC352F #77CC2F #2FC6CC
square
#842FCC #CC352F #77CC2F #2FC6CC
split-complementary
#842FCC #C6CC2F #2FCC35
monochromatic
#441869 #64249A #842FCC #A15EDA #BE90E5

Accessibility & contrast

On white

6.44
#842FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#842FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842FCC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842FCC#FFFFFF#000000##FFFFFF
##842FCC1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#76587D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #842fcc;
/* rgb */ color: rgb(132, 47, 204);
/* oklch */ color: oklch(51.2% 0.225 303.8);
Tailwind
colors: {
  custom: {
    50: '#ae71dd',
    500: '#842fcc',
    950: '#000000',
  },
}
SCSS
$custom: #842fcc;
$custom-light: #ae71dd;
$custom-dark: #000000;
JSON
{
  "hex": "#842fcc",
  "rgb": {
    "r": 132,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 272.484,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.22494,
    "h": 303.8
  },
  "luminance": 0.11298
}

Semantic roles & 50–950 ramp

primary
#842FCC
secondary
#A8D087
accent
#E6428D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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