#8F40AE#8F40AE

#8F40AE is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.3% C 0.178 H 315.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8F40AE
RGBrgb(143, 64, 174)
HSLhsl(283, 46%, 47%)
HSVhsv(283, 63%, 68%)
CMYKcmyk(17.8%, 63.2%, 0%, 31.8%)
CIE-LABlab(42.10, 50.89, -44.68)
CIE-LCHlch(42.10, 67.72, 318.71°)
OKLaboklab(52.28% 0.1261 -0.1254)
OKLCHoklch(52.28% 0.178 315.2)
XYZxyz(20.7999, 12.5631, 41.3654)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40AE #5FAE40
analogous
#5840AE #8F40AE #AE4096
triadic
#8F40AE #AE8F40 #40AE8F
tetradic
#8F40AE #AE5840 #5FAE40 #4096AE
square
#8F40AE #AE5840 #5FAE40 #4096AE
split-complementary
#8F40AE #96AE40 #40AE58
monochromatic
#451F55 #6A3081 #8F40AE #AB65C6 #C392D7

Accessibility & contrast

On white

5.98
#8F40AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8F40AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40AE
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40AE#FFFFFF#000000##FFFFFF
##8F40AE1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB1
Deuteranopia (green-blind)
#3E65AB
Tritanopia (blue-blind)
#8D5471
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f40ae;
/* rgb */ color: rgb(143, 64, 174);
/* oklch */ color: oklch(52.3% 0.178 315.2);
Tailwind
colors: {
  custom: {
    50: '#b37ac7',
    500: '#8f40ae',
    950: '#000000',
  },
}
SCSS
$custom: #8f40ae;
$custom-light: #b37ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40ae",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 283.091,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.17781,
    "h": 315.2
  },
  "luminance": 0.12562
}

Semantic roles & 50–950 ramp

primary
#8F40AE
secondary
#98C288
accent
#D65277
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8F40AE

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

Preview Lab → · Contrast checker → · Palette generator →

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