#842AB6#842AB6

#842AB6 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.209 H 309.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#842AB6
RGBrgb(132, 42, 182)
HSLhsl(279, 63%, 44%)
HSVhsv(279, 77%, 71%)
CMYKcmyk(27.5%, 76.9%, 0%, 28.6%)
CIE-LABlab(37.73, 59.64, -56.53)
CIE-LCHlch(37.73, 82.17, 316.54°)
OKLaboklab(49.01% 0.1342 -0.1603)
OKLCHoklch(49.01% 0.209 309.9)
XYZxyz(18.7855, 9.9393, 45.1758)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AB6 #5CB62A
analogous
#3E2AB6 #842AB6 #B62AA2
triadic
#842AB6 #B6842A #2AB684
tetradic
#842AB6 #B63E2A #5CB62A #2AA2B6
square
#842AB6 #B63E2A #5CB62A #2AA2B6
split-complementary
#842AB6 #A2B62A #2AB63E
monochromatic
#3C1353 #601F84 #842AB6 #A348D5 #BC7AE0

Accessibility & contrast

On white

7.03
#842AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#842AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AB6
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AB6#FFFFFF#000000##FFFFFF
##842AB61.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#7D4C6F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842ab6;
/* rgb */ color: rgb(132, 42, 182);
/* oklch */ color: oklch(49.0% 0.209 309.9);
Tailwind
colors: {
  custom: {
    50: '#ad6ecd',
    500: '#842ab6',
    950: '#000000',
  },
}
SCSS
$custom: #842ab6;
$custom-light: #ad6ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#842ab6",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 278.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49007,
    "c": 0.20906,
    "h": 309.9
  },
  "luminance": 0.09939
}

Semantic roles & 50–950 ramp

primary
#842AB6
secondary
#92C873
accent
#E6427D
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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