#842EC0#842EC0

#842EC0 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.214 H 306.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#842EC0
RGBrgb(132, 46, 192)
HSLhsl(275, 61%, 47%)
HSVhsv(275, 76%, 75%)
CMYKcmyk(31.2%, 76%, 0%, 24.7%)
CIE-LABlab(39.01, 60.30, -60.34)
CIE-LCHlch(39.01, 85.30, 314.98°)
OKLaboklab(50.14% 0.1286 -0.1715)
OKLCHoklch(50.14% 0.214 306.9)
XYZxyz(20.0051, 10.6655, 50.8637)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EC0 #6AC02E
analogous
#3B2EC0 #842EC0 #C02EB3
triadic
#842EC0 #C0842E #2EC084
tetradic
#842EC0 #C03B2E #6AC02E #2EB3C0
square
#842EC0 #C03B2E #6AC02E #2EB3C0
split-complementary
#842EC0 #B3C02E #2EC03B
monochromatic
#40165D #62228F #842EC0 #A155D6 #BC86E2

Accessibility & contrast

On white

6.70
#842EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#842EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EC0
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EC0#FFFFFF#000000##FFFFFF
##842EC01.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#7A5276
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #842ec0;
/* rgb */ color: rgb(132, 46, 192);
/* oklch */ color: oklch(50.1% 0.214 306.9);
Tailwind
colors: {
  custom: {
    50: '#ad70d4',
    500: '#842ec0',
    950: '#000000',
  },
}
SCSS
$custom: #842ec0;
$custom-light: #ad70d4;
$custom-dark: #000000;
JSON
{
  "hex": "#842ec0",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 275.342,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50142,
    "c": 0.21441,
    "h": 306.9
  },
  "luminance": 0.10665
}

Semantic roles & 50–950 ramp

primary
#842EC0
secondary
#9ECC7E
accent
#E44386
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #842EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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