#8F40AF#8F40AF

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

Color values

HEX#8F40AF
RGBrgb(143, 64, 175)
HSLhsl(283, 46%, 47%)
HSVhsv(283, 63%, 69%)
CMYKcmyk(18.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(42.16, 51.10, -45.18)
CIE-LCHlch(42.16, 68.21, 318.52°)
OKLaboklab(52.34% 0.1261 -0.1268)
OKLCHoklch(52.34% 0.179 314.8)
XYZxyz(20.8977, 12.6023, 41.8808)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40AF #60AF40
analogous
#5840AF #8F40AF #AF4098
triadic
#8F40AF #AF8F40 #40AF8F
tetradic
#8F40AF #AF5840 #60AF40 #4098AF
square
#8F40AF #AF5840 #60AF40 #4098AF
split-complementary
#8F40AF #98AF40 #40AF58
monochromatic
#461F55 #6A3082 #8F40AF #AB65C7 #C392D7

Accessibility & contrast

On white

5.97
#8F40AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8F40AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40AF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40AF#FFFFFF#000000##FFFFFF
##8F40AF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165FB2
Deuteranopia (green-blind)
#3D66AC
Tritanopia (blue-blind)
#8C5472
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8f40af;
/* rgb */ color: rgb(143, 64, 175);
/* oklch */ color: oklch(52.3% 0.179 314.8);
Tailwind
colors: {
  custom: {
    50: '#b37ac7',
    500: '#8f40af',
    950: '#000000',
  },
}
SCSS
$custom: #8f40af;
$custom-light: #b37ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40af",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 282.703,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5234,
    "c": 0.17883,
    "h": 314.8
  },
  "luminance": 0.12602
}

Semantic roles & 50–950 ramp

primary
#8F40AF
secondary
#99C388
accent
#D65278
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8F40AF

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

Preview Lab → · Contrast checker → · Palette generator →

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