#842CBD#842CBD

#842CBD is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.214 H 307.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#842CBD
RGBrgb(132, 44, 189)
HSLhsl(276, 62%, 46%)
HSVhsv(276, 77%, 74%)
CMYKcmyk(30.2%, 76.7%, 0%, 25.9%)
CIE-LABlab(38.52, 60.41, -59.38)
CIE-LCHlch(38.52, 84.70, 315.49°)
OKLaboklab(49.72% 0.131 -0.1687)
OKLCHoklch(49.72% 0.214 307.8)
XYZxyz(19.5998, 10.3813, 49.1055)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CBD #65BD2C
analogous
#3B2CBD #842CBD #BD2CAD
triadic
#842CBD #BD842C #2CBD84
tetradic
#842CBD #BD3B2C #65BD2C #2CADBD
square
#842CBD #BD3B2C #65BD2C #2CADBD
split-complementary
#842CBD #ADBD2C #2CBD3B
monochromatic
#3F155A #61208B #842CBD #A150D6 #BC82E2

Accessibility & contrast

On white

6.83
#842CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#842CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CBD
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CBD#FFFFFF#000000##FFFFFF
##842CBD1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#7B5074
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842cbd;
/* rgb */ color: rgb(132, 44, 189);
/* oklch */ color: oklch(49.7% 0.214 307.8);
Tailwind
colors: {
  custom: {
    50: '#ad6fd2',
    500: '#842cbd',
    950: '#000000',
  },
}
SCSS
$custom: #842cbd;
$custom-light: #ad6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#842cbd",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 276.414,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49724,
    "c": 0.21359,
    "h": 307.8
  },
  "luminance": 0.10381
}

Semantic roles & 50–950 ramp

primary
#842CBD
secondary
#9ACB7A
accent
#E54282
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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