#8E2EC2#8E2EC2

#8E2EC2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.6% C 0.219 H 310.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8E2EC2
RGBrgb(142, 46, 194)
HSLhsl(279, 62%, 47%)
HSVhsv(279, 76%, 76%)
CMYKcmyk(26.8%, 76.3%, 0%, 23.9%)
CIE-LABlab(40.57, 62.53, -58.91)
CIE-LCHlch(40.57, 85.90, 316.71°)
OKLaboklab(51.58% 0.1416 -0.167)
OKLCHoklch(51.58% 0.219 310.3)
XYZxyz(21.8680, 11.6003, 52.1156)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EC2 #62C22E
analogous
#442EC2 #8E2EC2 #C22EAC
triadic
#8E2EC2 #C28E2E #2EC28E
tetradic
#8E2EC2 #C2442E #62C22E #2EACC2
square
#8E2EC2 #C2442E #62C22E #2EACC2
split-complementary
#8E2EC2 #ACC22E #2EC244
monochromatic
#46175F #6A2291 #8E2EC2 #AA56D7 #C388E3

Accessibility & contrast

On white

6.33
#8E2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8E2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EC2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EC2#FFFFFF#000000##FFFFFF
##8E2EC21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#875277
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e2ec2;
/* rgb */ color: rgb(142, 46, 194);
/* oklch */ color: oklch(51.6% 0.219 310.3);
Tailwind
colors: {
  custom: {
    50: '#b471d5',
    500: '#8e2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2ec2;
$custom-light: #b471d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2ec2",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 278.919,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51582,
    "c": 0.21897,
    "h": 310.3
  },
  "luminance": 0.116
}

Semantic roles & 50–950 ramp

primary
#8E2EC2
secondary
#9ACC7F
accent
#E5437C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8E2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

#8E2EC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva