#8F3EA5#8F3EA5

#8F3EA5 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.5% C 0.172 H 318.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8F3EA5
RGBrgb(143, 62, 165)
HSLhsl(287, 45%, 45%)
HSVhsv(287, 62%, 65%)
CMYKcmyk(13.3%, 62.4%, 0%, 35.3%)
CIE-LABlab(41.22, 49.97, -40.74)
CIE-LCHlch(41.22, 64.47, 320.81°)
OKLaboklab(51.47% 0.1286 -0.1138)
OKLCHoklch(51.47% 0.172 318.5)
XYZxyz(19.8409, 12.0023, 36.8616)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3EA5 #54A53E
analogous
#5B3EA5 #8F3EA5 #A53E88
triadic
#8F3EA5 #A58F3E #3EA58F
tetradic
#8F3EA5 #A55B3E #54A53E #3E88A5
square
#8F3EA5 #A55B3E #54A53E #3E88A5
split-complementary
#8F3EA5 #88A53E #3EA55B
monochromatic
#421D4C #682D79 #8F3EA5 #AD5EC2 #C48AD3

Accessibility & contrast

On white

6.18
#8F3EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8F3EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F3EA5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3EA5#FFFFFF#000000##FFFFFF
##8F3EA51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215CA8
Deuteranopia (green-blind)
#4364A2
Tritanopia (blue-blind)
#8F4F6C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f3ea5;
/* rgb */ color: rgb(143, 62, 165);
/* oklch */ color: oklch(51.5% 0.172 318.5);
Tailwind
colors: {
  custom: {
    50: '#b378c0',
    500: '#8f3ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8f3ea5;
$custom-light: #b378c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3ea5",
  "rgb": {
    "r": 143,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 287.184,
    "s": 45.374,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5147,
    "c": 0.1717,
    "h": 318.5
  },
  "luminance": 0.12002
}

Semantic roles & 50–950 ramp

primary
#8F3EA5
secondary
#8EBE81
accent
#D5536F
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8F3EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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