#8E4FA2#8E4FA2

#8E4FA2 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 53.5% C 0.141 H 317.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8E4FA2
RGBrgb(142, 79, 162)
HSLhsl(286, 34%, 47%)
HSVhsv(286, 51%, 64%)
CMYKcmyk(12.3%, 51.2%, 0%, 36.5%)
CIE-LABlab(44.16, 40.39, -34.30)
CIE-LCHlch(44.16, 52.98, 319.66°)
OKLaboklab(53.55% 0.1041 -0.0952)
OKLCHoklch(53.55% 0.141 317.5)
XYZxyz(20.4720, 13.9521, 35.7900)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4FA2 #63A24F
analogous
#644FA2 #8E4FA2 #A24F8D
triadic
#8E4FA2 #A28E4F #4FA28E
tetradic
#8E4FA2 #A2644F #63A24F #4F8DA2
square
#8E4FA2 #A2644F #63A24F #4F8DA2
split-complementary
#8E4FA2 #8DA24F #4FA264
monochromatic
#462750 #6A3B79 #8E4FA2 #AA73BB #C39CCF

Accessibility & contrast

On white

5.54
#8E4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8E4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4FA2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4FA2#FFFFFF#000000##FFFFFF
##8E4FA21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A5
Deuteranopia (green-blind)
#526AA0
Tritanopia (blue-blind)
#8E5B71
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e4fa2;
/* rgb */ color: rgb(142, 79, 162);
/* oklch */ color: oklch(53.5% 0.141 317.5);
Tailwind
colors: {
  custom: {
    50: '#b183be',
    500: '#8e4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4fa2;
$custom-light: #b183be;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4fa2",
  "rgb": {
    "r": 142,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 285.542,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.53546,
    "c": 0.14107,
    "h": 317.5
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#8E4FA2
secondary
#9BBC91
accent
#CB5D78
background
#FBF8FB
surface
#F6EFF7
border
#D0CAD0
text
#110B12
muted
#807C81

Preview Lab

Preview with #8E4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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