#8E4BA2#8E4BA2

#8E4BA2 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.9% C 0.148 H 318.0°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8E4BA2
RGBrgb(142, 75, 162)
HSLhsl(286, 37%, 46%)
HSVhsv(286, 54%, 64%)
CMYKcmyk(12.3%, 53.7%, 0%, 36.5%)
CIE-LABlab(43.35, 42.53, -35.58)
CIE-LCHlch(43.35, 55.45, 320.08°)
OKLaboklab(52.94% 0.1098 -0.0989)
OKLCHoklch(52.94% 0.148 318)
XYZxyz(20.1921, 13.3923, 35.6967)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E4BA2 #5FA24B
analogous
#634BA2 #8E4BA2 #A24B8B
triadic
#8E4BA2 #A28E4B #4BA28E
tetradic
#8E4BA2 #A2634B #5FA24B #4B8BA2
square
#8E4BA2 #A2634B #5FA24B #4B8BA2
split-complementary
#8E4BA2 #8BA24B #4BA263
monochromatic
#45244E #693878 #8E4BA2 #AA6EBC #C398CF

Accessibility & contrast

On white

5.71
#8E4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8E4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E4BA2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E4BA2#FFFFFF#000000##FFFFFF
##8E4BA21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#4F69A0
Tritanopia (blue-blind)
#8E586F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e4ba2;
/* rgb */ color: rgb(142, 75, 162);
/* oklch */ color: oklch(52.9% 0.148 318.0);
Tailwind
colors: {
  custom: {
    50: '#b180be',
    500: '#8e4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8e4ba2;
$custom-light: #b180be;
$custom-dark: #000000;
JSON
{
  "hex": "#8e4ba2",
  "rgb": {
    "r": 142,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 286.207,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.52944,
    "c": 0.14778,
    "h": 318
  },
  "luminance": 0.13392
}

Semantic roles & 50–950 ramp

primary
#8E4BA2
secondary
#98BC8D
accent
#CD5B75
background
#FBF8FB
surface
#F6EFF7
border
#D0CAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8E4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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