#8E40AF#8E40AF

#8E40AF is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.2% C 0.178 H 314.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8E40AF
RGBrgb(142, 64, 175)
HSLhsl(282, 46%, 47%)
HSVhsv(282, 63%, 69%)
CMYKcmyk(18.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(42.02, 50.86, -45.41)
CIE-LCHlch(42.02, 68.18, 318.24°)
OKLaboklab(52.21% 0.1248 -0.1275)
OKLCHoklch(52.21% 0.178 314.4)
XYZxyz(20.7253, 12.5134, 41.8727)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E40AF #61AF40
analogous
#5640AF #8E40AF #AF4099
triadic
#8E40AF #AF8E40 #40AF8E
tetradic
#8E40AF #AF5640 #61AF40 #4099AF
square
#8E40AF #AF5640 #61AF40 #4099AF
split-complementary
#8E40AF #99AF40 #40AF56
monochromatic
#451F55 #6A3082 #8E40AF #AA65C7 #C392D7

Accessibility & contrast

On white

6.00
#8E40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8E40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E40AF
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E40AF#FFFFFF#000000##FFFFFF
##8E40AF1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155FB2
Deuteranopia (green-blind)
#3C65AC
Tritanopia (blue-blind)
#8B5572
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e40af;
/* rgb */ color: rgb(142, 64, 175);
/* oklch */ color: oklch(52.2% 0.178 314.4);
Tailwind
colors: {
  custom: {
    50: '#b27ac7',
    500: '#8e40af',
    950: '#000000',
  },
}
SCSS
$custom: #8e40af;
$custom-light: #b27ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e40af",
  "rgb": {
    "r": 142,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 282.162,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52212,
    "c": 0.17843,
    "h": 314.4
  },
  "luminance": 0.12513
}

Semantic roles & 50–950 ramp

primary
#8E40AF
secondary
#9AC388
accent
#D65279
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8E40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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