#842EB2#842EB2

#842EB2 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.201 H 310.8°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#842EB2
RGBrgb(132, 46, 178)
HSLhsl(279, 59%, 44%)
HSVhsv(279, 74%, 70%)
CMYKcmyk(25.8%, 74.2%, 0%, 30.2%)
CIE-LABlab(37.98, 57.25, -53.76)
CIE-LCHlch(37.98, 78.54, 316.80°)
OKLaboklab(49.09% 0.1313 -0.1522)
OKLCHoklch(49.09% 0.201 310.8)
XYZxyz(18.5270, 10.0743, 43.0794)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EB2 #5CB22E
analogous
#422EB2 #842EB2 #B22E9E
triadic
#842EB2 #B2842E #2EB284
tetradic
#842EB2 #B2422E #5CB22E #2E9EB2
square
#842EB2 #B2422E #5CB22E #2E9EB2
split-complementary
#842EB2 #9EB22E #2EB242
monochromatic
#3C1551 #602181 #842EB2 #A34CD1 #BC7DDD

Accessibility & contrast

On white

6.97
#842EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#842EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EB2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EB2#FFFFFF#000000##FFFFFF
##842EB21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#7E4C6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #842eb2;
/* rgb */ color: rgb(132, 46, 178);
/* oklch */ color: oklch(49.1% 0.201 310.8);
Tailwind
colors: {
  custom: {
    50: '#ac6fca',
    500: '#842eb2',
    950: '#000000',
  },
}
SCSS
$custom: #842eb2;
$custom-light: #ac6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#842eb2",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 279.091,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49086,
    "c": 0.20101,
    "h": 310.8
  },
  "luminance": 0.10074
}

Semantic roles & 50–950 ramp

primary
#842EB2
secondary
#92C676
accent
#E2467C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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