#842ABF#842ABF

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

Color values

HEX#842ABF
RGBrgb(132, 42, 191)
HSLhsl(276, 64%, 46%)
HSVhsv(276, 78%, 75%)
CMYKcmyk(30.9%, 78%, 0%, 25.1%)
CIE-LABlab(38.42, 61.57, -60.72)
CIE-LCHlch(38.42, 86.48, 315.40°)
OKLaboklab(49.7% 0.1322 -0.1726)
OKLCHoklch(49.7% 0.217 307.4)
XYZxyz(19.7456, 10.3233, 50.2325)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842ABF #65BF2A
analogous
#3A2ABF #842ABF #BF2AAF
triadic
#842ABF #BF842A #2ABF84
tetradic
#842ABF #BF3A2A #65BF2A #2AAFBF
square
#842ABF #BF3A2A #65BF2A #2AAFBF
split-complementary
#842ABF #AFBF2A #2ABF3A
monochromatic
#3F145B #611F8D #842ABF #A14ED8 #BC80E3

Accessibility & contrast

On white

6.85
#842ABF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #842ABF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842ABF#FFFFFF#000000##FFFFFF
##842ABF1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842abf;
/* rgb */ color: rgb(132, 42, 191);
/* oklch */ color: oklch(49.7% 0.217 307.4);
Tailwind
colors: {
  custom: {
    50: '#ad6ed3',
    500: '#842abf',
    950: '#000000',
  },
}
SCSS
$custom: #842abf;
$custom-light: #ad6ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#842abf",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 191
  },
  "hsl": {
    "h": 276.242,
    "s": 63.948,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.21746,
    "h": 307.4
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#842ABF
secondary
#9ACC79
accent
#E74183
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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