#8D40AF#8D40AF

#8D40AF is a mid, vivid purple. Relative luminance 0.124; OKLCH L 52.1% C 0.178 H 313.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8D40AF
RGBrgb(141, 64, 175)
HSLhsl(282, 46%, 47%)
HSVhsv(282, 63%, 69%)
CMYKcmyk(19.4%, 63.4%, 0%, 31.4%)
CIE-LABlab(41.88, 50.62, -45.63)
CIE-LCHlch(41.88, 68.15, 317.97°)
OKLaboklab(52.09% 0.1235 -0.1282)
OKLCHoklch(52.09% 0.178 313.9)
XYZxyz(20.5545, 12.4253, 41.8647)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D40AF #62AF40
analogous
#5640AF #8D40AF #AF409A
triadic
#8D40AF #AF8D40 #40AF8D
tetradic
#8D40AF #AF5640 #62AF40 #409AAF
square
#8D40AF #AF5640 #62AF40 #409AAF
split-complementary
#8D40AF #9AAF40 #40AF56
monochromatic
#451F55 #693082 #8D40AF #A965C7 #C292D7

Accessibility & contrast

On white

6.03
#8D40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8D40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D40AF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D40AF#FFFFFF#000000##FFFFFF
##8D40AF1.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135FB2
Deuteranopia (green-blind)
#3B65AC
Tritanopia (blue-blind)
#8A5572
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8d40af;
/* rgb */ color: rgb(141, 64, 175);
/* oklch */ color: oklch(52.1% 0.178 313.9);
Tailwind
colors: {
  custom: {
    50: '#b17ac7',
    500: '#8d40af',
    950: '#000000',
  },
}
SCSS
$custom: #8d40af;
$custom-light: #b17ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d40af",
  "rgb": {
    "r": 141,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 281.622,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52085,
    "c": 0.17803,
    "h": 313.9
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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