#842ABA#842ABA

#842ABA is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.3% C 0.213 H 308.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#842ABA
RGBrgb(132, 42, 186)
HSLhsl(278, 63%, 45%)
HSVhsv(278, 77%, 73%)
CMYKcmyk(29%, 77.4%, 0%, 27.1%)
CIE-LABlab(38.03, 60.50, -58.40)
CIE-LCHlch(38.03, 84.08, 316.01°)
OKLaboklab(49.31% 0.1333 -0.1658)
OKLCHoklch(49.31% 0.213 308.8)
XYZxyz(19.2048, 10.1070, 47.3840)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842ABA #60BA2A
analogous
#3C2ABA #842ABA #BA2AA8
triadic
#842ABA #BA842A #2ABA84
tetradic
#842ABA #BA3C2A #60BA2A #2AA8BA
square
#842ABA #BA3C2A #60BA2A #2AA8BA
split-complementary
#842ABA #A8BA2A #2ABA3C
monochromatic
#3D1356 #611F88 #842ABA #A24BD6 #BC7DE2

Accessibility & contrast

On white

6.95
#842ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#842ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842ABA
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842ABA#FFFFFF#000000##FFFFFF
##842ABA1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842aba;
/* rgb */ color: rgb(132, 42, 186);
/* oklch */ color: oklch(49.3% 0.213 308.8);
Tailwind
colors: {
  custom: {
    50: '#ad6ed0',
    500: '#842aba',
    950: '#000000',
  },
}
SCSS
$custom: #842aba;
$custom-light: #ad6ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#842aba",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 277.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49313,
    "c": 0.21279,
    "h": 308.8
  },
  "luminance": 0.10107
}

Semantic roles & 50–950 ramp

primary
#842ABA
secondary
#95CA76
accent
#E6427F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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