#8E2BC2#8E2BC2

#8E2BC2 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.222 H 310.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#8E2BC2
RGBrgb(142, 43, 194)
HSLhsl(279, 64%, 46%)
HSVhsv(279, 78%, 76%)
CMYKcmyk(26.8%, 77.8%, 0%, 23.9%)
CIE-LABlab(40.20, 63.59, -59.51)
CIE-LCHlch(40.20, 87.09, 316.90°)
OKLaboklab(51.32% 0.1441 -0.1687)
OKLCHoklch(51.32% 0.222 310.5)
XYZxyz(21.7549, 11.3741, 52.0779)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2BC2 #5FC22B
analogous
#432BC2 #8E2BC2 #C22BAB
triadic
#8E2BC2 #C28E2B #2BC28E
tetradic
#8E2BC2 #C2432B #5FC22B #2BABC2
square
#8E2BC2 #C2432B #5FC22B #2BABC2
split-complementary
#8E2BC2 #ABC22B #2BC243
monochromatic
#45155E #692090 #8E2BC2 #AA52D9 #C384E4

Accessibility & contrast

On white

6.41
#8E2BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8E2BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2BC2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2BC2#FFFFFF#000000##FFFFFF
##8E2BC21.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2bc2;
/* rgb */ color: rgb(142, 43, 194);
/* oklch */ color: oklch(51.3% 0.222 310.5);
Tailwind
colors: {
  custom: {
    50: '#b470d5',
    500: '#8e2bc2',
    950: '#000000',
  },
}
SCSS
$custom: #8e2bc2;
$custom-light: #b470d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2bc2",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 279.338,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51322,
    "c": 0.22193,
    "h": 310.5
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#8E2BC2
secondary
#98CD7C
accent
#E7417A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8E2BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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