#8E2DC2#8E2DC2

#8E2DC2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.5% C 0.220 H 310.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8E2DC2
RGBrgb(142, 45, 194)
HSLhsl(279, 62%, 47%)
HSVhsv(279, 77%, 76%)
CMYKcmyk(26.8%, 76.8%, 0%, 23.9%)
CIE-LABlab(40.45, 62.89, -59.11)
CIE-LCHlch(40.45, 86.31, 316.77°)
OKLaboklab(51.49% 0.1425 -0.1676)
OKLCHoklch(51.49% 0.22 310.4)
XYZxyz(21.8294, 11.5231, 52.1027)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2DC2 #61C22D
analogous
#432DC2 #8E2DC2 #C22DAC
triadic
#8E2DC2 #C28E2D #2DC28E
tetradic
#8E2DC2 #C2432D #61C22D #2DACC2
square
#8E2DC2 #C2432D #61C22D #2DACC2
split-complementary
#8E2DC2 #ACC22D #2DC243
monochromatic
#45165F #6A2190 #8E2DC2 #AA55D7 #C386E3

Accessibility & contrast

On white

6.35
#8E2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8E2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2DC2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2DC2#FFFFFF#000000##FFFFFF
##8E2DC21.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#875177
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e2dc2;
/* rgb */ color: rgb(142, 45, 194);
/* oklch */ color: oklch(51.5% 0.220 310.4);
Tailwind
colors: {
  custom: {
    50: '#b471d5',
    500: '#8e2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2dc2;
$custom-light: #b471d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2dc2",
  "rgb": {
    "r": 142,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 279.06,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51494,
    "c": 0.21997,
    "h": 310.4
  },
  "luminance": 0.11523
}

Semantic roles & 50–950 ramp

primary
#8E2DC2
secondary
#9ACD7E
accent
#E5427B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8E2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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