#842EB3#842EB3

#842EB3 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.202 H 310.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#842EB3
RGBrgb(132, 46, 179)
HSLhsl(279, 59%, 44%)
HSVhsv(279, 74%, 70%)
CMYKcmyk(26.3%, 74.3%, 0%, 29.8%)
CIE-LABlab(38.05, 57.47, -54.24)
CIE-LCHlch(38.05, 79.02, 316.66°)
OKLaboklab(49.16% 0.1311 -0.1536)
OKLCHoklch(49.16% 0.202 310.5)
XYZxyz(18.6278, 10.1146, 43.6101)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EB3 #5DB32E
analogous
#422EB3 #842EB3 #B32EA0
triadic
#842EB3 #B3842E #2EB384
tetradic
#842EB3 #B3422E #5DB32E #2EA0B3
square
#842EB3 #B3422E #5DB32E #2EA0B3
split-complementary
#842EB3 #A0B32E #2EB342
monochromatic
#3C1552 #602182 #842EB3 #A24DD1 #BC7EDE

Accessibility & contrast

On white

6.95
#842EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#842EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EB3
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EB3#FFFFFF#000000##FFFFFF
##842EB31.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#115BB0
Tritanopia (blue-blind)
#7E4D6E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #842eb3;
/* rgb */ color: rgb(132, 46, 179);
/* oklch */ color: oklch(49.2% 0.202 310.5);
Tailwind
colors: {
  custom: {
    50: '#ac6fcb',
    500: '#842eb3',
    950: '#000000',
  },
}
SCSS
$custom: #842eb3;
$custom-light: #ac6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#842eb3",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 278.797,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49159,
    "c": 0.20196,
    "h": 310.5
  },
  "luminance": 0.10114
}

Semantic roles & 50–950 ramp

primary
#842EB3
secondary
#93C676
accent
#E2467D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #842EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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