#842CBB#842CBB

#842CBB is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.212 H 308.4°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#842CBB
RGBrgb(132, 44, 187)
HSLhsl(277, 62%, 45%)
HSVhsv(277, 76%, 73%)
CMYKcmyk(29.4%, 76.5%, 0%, 26.7%)
CIE-LABlab(38.37, 59.97, -58.45)
CIE-LCHlch(38.37, 83.74, 315.74°)
OKLaboklab(49.57% 0.1314 -0.166)
OKLCHoklch(49.57% 0.212 308.4)
XYZxyz(19.3842, 10.2951, 47.9701)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CBB #63BB2C
analogous
#3C2CBB #842CBB #BB2CAA
triadic
#842CBB #BB842C #2CBB84
tetradic
#842CBB #BB3C2C #63BB2C #2CAABB
square
#842CBB #BB3C2C #63BB2C #2CAABB
split-complementary
#842CBB #AABB2C #2CBB3C
monochromatic
#3E1558 #612089 #842CBB #A24FD6 #BC80E1

Accessibility & contrast

On white

6.86
#842CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#842CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CBB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CBB#FFFFFF#000000##FFFFFF
##842CBB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#005BB8
Tritanopia (blue-blind)
#7B4F72
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842cbb;
/* rgb */ color: rgb(132, 44, 187);
/* oklch */ color: oklch(49.6% 0.212 308.4);
Tailwind
colors: {
  custom: {
    50: '#ad6fd0',
    500: '#842cbb',
    950: '#000000',
  },
}
SCSS
$custom: #842cbb;
$custom-light: #ad6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#842cbb",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 276.923,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4957,
    "c": 0.21171,
    "h": 308.4
  },
  "luminance": 0.10295
}

Semantic roles & 50–950 ramp

primary
#842CBB
secondary
#98CA79
accent
#E54381
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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