#842ABE#842ABE

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

Color values

HEX#842ABE
RGBrgb(132, 42, 190)
HSLhsl(276, 64%, 45%)
HSVhsv(276, 78%, 75%)
CMYKcmyk(30.5%, 77.9%, 0%, 25.5%)
CIE-LABlab(38.34, 61.36, -60.26)
CIE-LCHlch(38.34, 86.00, 315.52°)
OKLaboklab(49.62% 0.1325 -0.1713)
OKLCHoklch(49.62% 0.217 307.7)
XYZxyz(19.6360, 10.2795, 49.6549)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842ABE #64BE2A
analogous
#3A2ABE #842ABE #BE2AAE
triadic
#842ABE #BE842A #2ABE84
tetradic
#842ABE #BE3A2A #64BE2A #2AAEBE
square
#842ABE #BE3A2A #64BE2A #2AAEBE
split-complementary
#842ABE #AEBE2A #2ABE3A
monochromatic
#3E145A #611F8C #842ABE #A24DD8 #BC80E3

Accessibility & contrast

On white

6.87
#842ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842ABE
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842ABE#FFFFFF#000000##FFFFFF
##842ABE1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#7A5074
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842abe;
/* rgb */ color: rgb(132, 42, 190);
/* oklch */ color: oklch(49.6% 0.217 307.7);
Tailwind
colors: {
  custom: {
    50: '#ad6ed3',
    500: '#842abe',
    950: '#000000',
  },
}
SCSS
$custom: #842abe;
$custom-light: #ad6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#842abe",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 190
  },
  "hsl": {
    "h": 276.486,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49623,
    "c": 0.21653,
    "h": 307.7
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#842ABE
secondary
#99CB78
accent
#E74182
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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