#842EB4#842EB4

#842EB4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.203 H 310.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#842EB4
RGBrgb(132, 46, 180)
HSLhsl(279, 59%, 44%)
HSVhsv(279, 74%, 71%)
CMYKcmyk(26.7%, 74.4%, 0%, 29.4%)
CIE-LABlab(38.12, 57.68, -54.72)
CIE-LCHlch(38.12, 79.51, 316.51°)
OKLaboklab(49.23% 0.1309 -0.155)
OKLCHoklch(49.23% 0.203 310.2)
XYZxyz(18.7293, 10.1552, 44.1447)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EB4 #5EB42E
analogous
#412EB4 #842EB4 #B42EA1
triadic
#842EB4 #B4842E #2EB484
tetradic
#842EB4 #B4412E #5EB42E #2EA1B4
square
#842EB4 #B4412E #5EB42E #2EA1B4
split-complementary
#842EB4 #A1B42E #2EB441
monochromatic
#3D1553 #602283 #842EB4 #A24ED2 #BC7EDE

Accessibility & contrast

On white

6.93
#842EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#842EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EB4
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EB4#FFFFFF#000000##FFFFFF
##842EB41.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#0E5BB1
Tritanopia (blue-blind)
#7D4D6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842eb4;
/* rgb */ color: rgb(132, 46, 180);
/* oklch */ color: oklch(49.2% 0.203 310.2);
Tailwind
colors: {
  custom: {
    50: '#ac6fcb',
    500: '#842eb4',
    950: '#000000',
  },
}
SCSS
$custom: #842eb4;
$custom-light: #ac6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#842eb4",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 278.507,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49233,
    "c": 0.20291,
    "h": 310.2
  },
  "luminance": 0.10155
}

Semantic roles & 50–950 ramp

primary
#842EB4
secondary
#94C777
accent
#E2457E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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