#842EBB#842EBB

#842EBB is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.210 H 308.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#842EBB
RGBrgb(132, 46, 187)
HSLhsl(277, 61%, 46%)
HSVhsv(277, 75%, 73%)
CMYKcmyk(29.4%, 75.4%, 0%, 26.7%)
CIE-LABlab(38.63, 59.20, -58.01)
CIE-LCHlch(38.63, 82.89, 315.58°)
OKLaboklab(49.76% 0.1296 -0.1647)
OKLCHoklch(49.76% 0.21 308.2)
XYZxyz(19.4605, 10.4477, 47.9955)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EBB #65BB2E
analogous
#3E2EBB #842EBB #BB2EAB
triadic
#842EBB #BB842E #2EBB84
tetradic
#842EBB #BB3E2E #65BB2E #2EABBB
square
#842EBB #BB3E2E #65BB2E #2EABBB
split-complementary
#842EBB #ABBB2E #2EBB3E
monochromatic
#3F1659 #61228A #842EBB #A152D4 #BC83E0

Accessibility & contrast

On white

6.80
#842EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#842EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EBB
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EBB#FFFFFF#000000##FFFFFF
##842EBB1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#7B5073
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #842ebb;
/* rgb */ color: rgb(132, 46, 187);
/* oklch */ color: oklch(49.8% 0.210 308.2);
Tailwind
colors: {
  custom: {
    50: '#ad70d0',
    500: '#842ebb',
    950: '#000000',
  },
}
SCSS
$custom: #842ebb;
$custom-light: #ad70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#842ebb",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 276.596,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49759,
    "c": 0.20961,
    "h": 308.2
  },
  "luminance": 0.10447
}

Semantic roles & 50–950 ramp

primary
#842EBB
secondary
#9ACA7B
accent
#E44482
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #842EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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