#8E3FA2#8E3FA2

#8E3FA2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.3% C 0.167 H 319.1°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8E3FA2
RGBrgb(142, 63, 162)
HSLhsl(288, 44%, 44%)
HSVhsv(288, 61%, 64%)
CMYKcmyk(12.3%, 61.1%, 0%, 36.5%)
CIE-LABlab(41.08, 48.62, -39.17)
CIE-LCHlch(41.08, 62.44, 321.14°)
OKLaboklab(51.28% 0.126 -0.1093)
OKLCHoklch(51.28% 0.167 319.1)
XYZxyz(19.4536, 11.9153, 35.4506)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3FA2 #53A23F
analogous
#5D3FA2 #8E3FA2 #A23F85
triadic
#8E3FA2 #A28E3F #3FA28E
tetradic
#8E3FA2 #A25D3F #53A23F #3F85A2
square
#8E3FA2 #A25D3F #53A23F #3F85A2
split-complementary
#8E3FA2 #85A23F #3FA25D
monochromatic
#411D4A #672E76 #8E3FA2 #AC5EC0 #C38AD1

Accessibility & contrast

On white

6.21
#8E3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8E3FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3FA2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3FA2#FFFFFF#000000##FFFFFF
##8E3FA21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265CA5
Deuteranopia (green-blind)
#45649F
Tritanopia (blue-blind)
#8E4F6A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e3fa2;
/* rgb */ color: rgb(142, 63, 162);
/* oklch */ color: oklch(51.3% 0.167 319.1);
Tailwind
colors: {
  custom: {
    50: '#b279be',
    500: '#8e3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8e3fa2;
$custom-light: #b279be;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3fa2",
  "rgb": {
    "r": 142,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 287.879,
    "s": 44,
    "l": 44.118
  },
  "oklch": {
    "l": 0.51284,
    "c": 0.16677,
    "h": 319.1
  },
  "luminance": 0.11914
}

Semantic roles & 50–950 ramp

primary
#8E3FA2
secondary
#8DBC81
accent
#D4546E
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8E3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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