#842ED0#842ED0

#842ED0 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.4% C 0.230 H 302.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#842ED0
RGBrgb(132, 46, 208)
HSLhsl(272, 64%, 50%)
HSVhsv(272, 78%, 82%)
CMYKcmyk(36.5%, 77.9%, 0%, 18.4%)
CIE-LABlab(40.27, 63.88, -67.60)
CIE-LCHlch(40.27, 93.01, 313.38°)
OKLaboklab(51.41% 0.1248 -0.1929)
OKLCHoklch(51.41% 0.23 302.9)
XYZxyz(21.8752, 11.4136, 60.7129)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842ED0 #7AD02E
analogous
#332ED0 #842ED0 #D02ECB
triadic
#842ED0 #D0842E #2ED084
tetradic
#842ED0 #D0332E #7AD02E #2ECBD0
square
#842ED0 #D0332E #7AD02E #2ECBD0
split-complementary
#842ED0 #CBD02E #2ED033
monochromatic
#44186C #64239E #842ED0 #A15FDC #BF92E7

Accessibility & contrast

On white

6.40
#842ED0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#842ED0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842ED0
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842ED0#FFFFFF#000000##FFFFFF
##842ED01.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD4
Deuteranopia (green-blind)
#005ECD
Tritanopia (blue-blind)
#74597F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #842ed0;
/* rgb */ color: rgb(132, 46, 208);
/* oklch */ color: oklch(51.4% 0.230 302.9);
Tailwind
colors: {
  custom: {
    50: '#ae71df',
    500: '#842ed0',
    950: '#000000',
  },
}
SCSS
$custom: #842ed0;
$custom-light: #ae71df;
$custom-dark: #000000;
JSON
{
  "hex": "#842ed0",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 208
  },
  "hsl": {
    "h": 271.852,
    "s": 63.78,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51414,
    "c": 0.22975,
    "h": 302.9
  },
  "luminance": 0.11414
}

Semantic roles & 50–950 ramp

primary
#842ED0
secondary
#ABD288
accent
#E7418F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #842ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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