#842EB8#842EB8

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

Color values

HEX#842EB8
RGBrgb(132, 46, 184)
HSLhsl(277, 60%, 45%)
HSVhsv(277, 75%, 72%)
CMYKcmyk(28.3%, 75%, 0%, 27.8%)
CIE-LABlab(38.41, 58.55, -56.61)
CIE-LCHlch(38.41, 81.44, 315.97°)
OKLaboklab(49.53% 0.1302 -0.1606)
OKLCHoklch(49.53% 0.207 309)
XYZxyz(19.1427, 10.3206, 46.3217)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EB8 #62B82E
analogous
#3F2EB8 #842EB8 #B82EA7
triadic
#842EB8 #B8842E #2EB884
tetradic
#842EB8 #B83F2E #62B82E #2EA7B8
square
#842EB8 #B83F2E #62B82E #2EA7B8
split-complementary
#842EB8 #A7B82E #2EB83F
monochromatic
#3E1656 #612287 #842EB8 #A250D3 #BC81DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##842EB8#FFFFFF#000000##FFFFFF
##842EB81.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)
#0057BC
Deuteranopia (green-blind)
#005BB5
Tritanopia (blue-blind)
#7C4F71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842eb8;
/* rgb */ color: rgb(132, 46, 184);
/* oklch */ color: oklch(49.5% 0.207 309.0);
Tailwind
colors: {
  custom: {
    50: '#ad70ce',
    500: '#842eb8',
    950: '#000000',
  },
}
SCSS
$custom: #842eb8;
$custom-light: #ad70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#842eb8",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 277.391,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49532,
    "c": 0.20675,
    "h": 309
  },
  "luminance": 0.1032
}

Semantic roles & 50–950 ramp

primary
#842EB8
secondary
#97C879
accent
#E34580
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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