#842CBA#842CBA

#842CBA is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.5% C 0.211 H 308.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#842CBA
RGBrgb(132, 44, 186)
HSLhsl(277, 62%, 45%)
HSVhsv(277, 76%, 73%)
CMYKcmyk(29%, 76.3%, 0%, 27.1%)
CIE-LABlab(38.29, 59.75, -57.98)
CIE-LCHlch(38.29, 83.26, 315.86°)
OKLaboklab(49.49% 0.1316 -0.1646)
OKLCHoklch(49.49% 0.211 308.6)
XYZxyz(19.2775, 10.2524, 47.4082)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CBA #62BA2C
analogous
#3D2CBA #842CBA #BA2CA9
triadic
#842CBA #BA842C #2CBA84
tetradic
#842CBA #BA3D2C #62BA2C #2CA9BA
square
#842CBA #BA3D2C #62BA2C #2CA9BA
split-complementary
#842CBA #A9BA2C #2CBA3D
monochromatic
#3E1557 #612089 #842CBA #A24ED5 #BC80E1

Accessibility & contrast

On white

6.88
#842CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#842CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842CBA
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CBA#FFFFFF#000000##FFFFFF
##842CBA1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#7C4F72
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842cba;
/* rgb */ color: rgb(132, 44, 186);
/* oklch */ color: oklch(49.5% 0.211 308.6);
Tailwind
colors: {
  custom: {
    50: '#ad6fd0',
    500: '#842cba',
    950: '#000000',
  },
}
SCSS
$custom: #842cba;
$custom-light: #ad6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#842cba",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 277.183,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49494,
    "c": 0.21076,
    "h": 308.6
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#842CBA
secondary
#97CA78
accent
#E54381
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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