#842CB8#842CB8

#842CB8 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.3% C 0.209 H 309.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#842CB8
RGBrgb(132, 44, 184)
HSLhsl(278, 61%, 45%)
HSVhsv(278, 76%, 72%)
CMYKcmyk(28.3%, 76.1%, 0%, 27.8%)
CIE-LABlab(38.14, 59.32, -57.04)
CIE-LCHlch(38.14, 82.30, 316.12°)
OKLaboklab(49.34% 0.132 -0.1619)
OKLCHoklch(49.34% 0.209 309.2)
XYZxyz(19.0664, 10.1680, 46.2963)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CB8 #60B82C
analogous
#3E2CB8 #842CB8 #B82CA6
triadic
#842CB8 #B8842C #2CB884
tetradic
#842CB8 #B83E2C #60B82C #2CA6B8
square
#842CB8 #B83E2C #60B82C #2CA6B8
split-complementary
#842CB8 #A6B82C #2CB83E
monochromatic
#3D1455 #612087 #842CB8 #A24DD4 #BC7EE0

Accessibility & contrast

On white

6.92
#842CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#842CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CB8
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CB8#FFFFFF#000000##FFFFFF
##842CB81.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#7C4E71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842cb8;
/* rgb */ color: rgb(132, 44, 184);
/* oklch */ color: oklch(49.3% 0.209 309.2);
Tailwind
colors: {
  custom: {
    50: '#ad6fce',
    500: '#842cb8',
    950: '#000000',
  },
}
SCSS
$custom: #842cb8;
$custom-light: #ad6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#842cb8",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 277.714,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49342,
    "c": 0.20887,
    "h": 309.2
  },
  "luminance": 0.10168
}

Semantic roles & 50–950 ramp

primary
#842CB8
secondary
#95C977
accent
#E5437F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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