#842CB2#842CB2

#842CB2 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.203 H 310.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#842CB2
RGBrgb(132, 44, 178)
HSLhsl(279, 60%, 44%)
HSVhsv(279, 75%, 70%)
CMYKcmyk(25.8%, 75.3%, 0%, 30.2%)
CIE-LABlab(37.70, 58.04, -54.21)
CIE-LCHlch(37.70, 79.41, 316.95°)
OKLaboklab(48.89% 0.1331 -0.1535)
OKLCHoklch(48.89% 0.203 310.9)
XYZxyz(18.4507, 9.9217, 43.0540)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CB2 #5AB22C
analogous
#412CB2 #842CB2 #B22C9D
triadic
#842CB2 #B2842C #2CB284
tetradic
#842CB2 #B2412C #5AB22C #2C9DB2
square
#842CB2 #B2412C #5AB22C #2C9DB2
split-complementary
#842CB2 #9DB22C #2CB241
monochromatic
#3B1450 #602081 #842CB2 #A349D2 #BC7ADE

Accessibility & contrast

On white

7.04
#842CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#842CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CB2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CB2#FFFFFF#000000##FFFFFF
##842CB21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0F5AAF
Tritanopia (blue-blind)
#7E4B6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842cb2;
/* rgb */ color: rgb(132, 44, 178);
/* oklch */ color: oklch(48.9% 0.203 310.9);
Tailwind
colors: {
  custom: {
    50: '#ac6eca',
    500: '#842cb2',
    950: '#000000',
  },
}
SCSS
$custom: #842cb2;
$custom-light: #ac6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#842cb2",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 279.403,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48892,
    "c": 0.20322,
    "h": 310.9
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#842CB2
secondary
#90C673
accent
#E4447B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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