#842AB8#842AB8

#842AB8 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.211 H 309.4°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#842AB8
RGBrgb(132, 42, 184)
HSLhsl(278, 63%, 44%)
HSVhsv(278, 77%, 72%)
CMYKcmyk(28.3%, 77.2%, 0%, 27.8%)
CIE-LABlab(37.88, 60.07, -57.46)
CIE-LCHlch(37.88, 83.13, 316.27°)
OKLaboklab(49.16% 0.1338 -0.1631)
OKLCHoklch(49.16% 0.211 309.4)
XYZxyz(18.9937, 10.0225, 46.2721)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AB8 #5EB82A
analogous
#3D2AB8 #842AB8 #B82AA5
triadic
#842AB8 #B8842A #2AB884
tetradic
#842AB8 #B83D2A #5EB82A #2AA5B8
square
#842AB8 #B83D2A #5EB82A #2AA5B8
split-complementary
#842AB8 #A5B82A #2AB83D
monochromatic
#3D1354 #601F86 #842AB8 #A24AD6 #BC7BE1

Accessibility & contrast

On white

6.99
#842AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#842AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842AB8
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AB8#FFFFFF#000000##FFFFFF
##842AB81.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#7C4D70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842ab8;
/* rgb */ color: rgb(132, 42, 184);
/* oklch */ color: oklch(49.2% 0.211 309.4);
Tailwind
colors: {
  custom: {
    50: '#ad6ece',
    500: '#842ab8',
    950: '#000000',
  },
}
SCSS
$custom: #842ab8;
$custom-light: #ad6ece;
$custom-dark: #000000;
JSON
{
  "hex": "#842ab8",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 278.028,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49159,
    "c": 0.21093,
    "h": 309.4
  },
  "luminance": 0.10022
}

Semantic roles & 50–950 ramp

primary
#842AB8
secondary
#94C975
accent
#E6427E
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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