#842EE3#842EE3

#842EE3 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 53.0% C 0.248 H 298.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#842EE3
RGBrgb(132, 46, 227)
HSLhsl(269, 76%, 54%)
HSVhsv(269, 80%, 89%)
CMYKcmyk(41.9%, 79.7%, 0%, 11%)
CIE-LABlab(41.85, 68.21, -75.91)
CIE-LCHlch(41.85, 102.06, 311.94°)
OKLaboklab(53.01% 0.1194 -0.2173)
OKLCHoklch(53.01% 0.248 298.8)
XYZxyz(24.3543, 12.4052, 73.7695)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EE3 #8DE32E
analogous
#2E32E3 #842EE3 #DE2EE3
triadic
#842EE3 #E3842E #2EE384
tetradic
#842EE3 #E32E32 #8DE32E #2EE3DE
square
#842EE3 #E32E32 #8DE32E #2EE3DE
split-complementary
#842EE3 #E3DE2E #32E32E
monochromatic
#481285 #6619BB #842EE3 #A464EA #C49AF1

Accessibility & contrast

On white

6.03
#842EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#842EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #842EE3
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EE3#FFFFFF#000000##FFFFFF
##842EE31.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E8
Deuteranopia (green-blind)
#0061E0
Tritanopia (blue-blind)
#6C618A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #842ee3;
/* rgb */ color: rgb(132, 46, 227);
/* oklch */ color: oklch(53.0% 0.248 298.8);
Tailwind
colors: {
  custom: {
    50: '#b072ed',
    500: '#842ee3',
    950: '#000000',
  },
}
SCSS
$custom: #842ee3;
$custom-light: #b072ed;
$custom-dark: #000000;
JSON
{
  "hex": "#842ee3",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 227
  },
  "hsl": {
    "h": 268.508,
    "s": 76.371,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53005,
    "c": 0.24795,
    "h": 298.8
  },
  "luminance": 0.12406
}

Semantic roles & 50–950 ramp

primary
#842EE3
secondary
#B8DD90
accent
#F33599
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #842EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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