#842AB2#842AB2

#842AB2 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.205 H 311.1°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#842AB2
RGBrgb(132, 42, 178)
HSLhsl(280, 62%, 43%)
HSVhsv(280, 76%, 70%)
CMYKcmyk(25.8%, 76.4%, 0%, 30.2%)
CIE-LABlab(37.44, 58.79, -54.63)
CIE-LCHlch(37.44, 80.26, 317.10°)
OKLaboklab(48.71% 0.1349 -0.1548)
OKLCHoklch(48.71% 0.205 311.1)
XYZxyz(18.3780, 9.7763, 43.0297)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AB2 #58B22A
analogous
#402AB2 #842AB2 #B22A9C
triadic
#842AB2 #B2842A #2AB284
tetradic
#842AB2 #B2402A #58B22A #2A9CB2
square
#842AB2 #B2402A #58B22A #2A9CB2
split-complementary
#842AB2 #9CB22A #2AB240
monochromatic
#3B134F #5F1E80 #842AB2 #A346D3 #BC77DF

Accessibility & contrast

On white

7.11
#842AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#842AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AB2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AB2#FFFFFF#000000##FFFFFF
##842AB21.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0B5AAF
Tritanopia (blue-blind)
#7E4A6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842ab2;
/* rgb */ color: rgb(132, 42, 178);
/* oklch */ color: oklch(48.7% 0.205 311.1);
Tailwind
colors: {
  custom: {
    50: '#ac6dca',
    500: '#842ab2',
    950: '#000000',
  },
}
SCSS
$custom: #842ab2;
$custom-light: #ac6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#842ab2",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 279.706,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.48706,
    "c": 0.20534,
    "h": 311.1
  },
  "luminance": 0.09776
}

Semantic roles & 50–950 ramp

primary
#842AB2
secondary
#8EC771
accent
#E5437A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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