#8E4FAC#8E4FAC

#8E4FAC is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.1% C 0.152 H 313.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8E4FAC
RGBrgb(142, 79, 172)
HSLhsl(281, 37%, 49%)
HSVhsv(281, 54%, 67%)
CMYKcmyk(17.4%, 54.1%, 0%, 32.5%)
CIE-LABlab(44.69, 42.56, -39.38)
CIE-LCHlch(44.69, 57.99, 317.22°)
OKLaboklab(54.11% 0.1051 -0.11)
OKLCHoklch(54.11% 0.152 313.7)
XYZxyz(21.3965, 14.3219, 40.6590)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4FAC #6DAC4F
analogous
#604FAC #8E4FAC #AC4F9C
triadic
#8E4FAC #AC8E4F #4FAC8E
tetradic
#8E4FAC #AC604F #6DAC4F #4F9CAC
square
#8E4FAC #AC604F #6DAC4F #4F9CAC
split-complementary
#8E4FAC #9CAC4F #4FAC60
monochromatic
#492858 #6B3C82 #8E4FAC #A977C1 #C4A1D4

Accessibility & contrast

On white

5.43
#8E4FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8E4FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4FAC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4FAC#FFFFFF#000000##FFFFFF
##8E4FAC1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#4C6BAA
Tritanopia (blue-blind)
#8B5E76
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e4fac;
/* rgb */ color: rgb(142, 79, 172);
/* oklch */ color: oklch(54.1% 0.152 313.7);
Tailwind
colors: {
  custom: {
    50: '#b183c5',
    500: '#8e4fac',
    950: '#000000',
  },
}
SCSS
$custom: #8e4fac;
$custom-light: #b183c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4fac",
  "rgb": {
    "r": 142,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 280.645,
    "s": 37.052,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54106,
    "c": 0.15215,
    "h": 313.7
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#8E4FAC
secondary
#A4C196
accent
#CD5B80
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8E4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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