#8F4EC4#8F4EC4

#8F4EC4 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.5% C 0.181 H 306.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8F4EC4
RGBrgb(143, 78, 196)
HSLhsl(273, 50%, 54%)
HSVhsv(273, 60%, 77%)
CMYKcmyk(27%, 60.2%, 0%, 23.1%)
CIE-LABlab(46.01, 48.82, -51.30)
CIE-LCHlch(46.01, 70.81, 313.58°)
OKLaboklab(55.55% 0.1085 -0.1448)
OKLCHoklch(55.55% 0.181 306.8)
XYZxyz(24.0138, 15.2742, 53.8970)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4EC4 #83C44E
analogous
#544EC4 #8F4EC4 #C44EBE
triadic
#8F4EC4 #C48F4E #4EC48F
tetradic
#8F4EC4 #C4544E #83C44E #4EBEC4
square
#8F4EC4 #C4544E #83C44E #4EBEC4
split-complementary
#8F4EC4 #BEC44E #4EC454
monochromatic
#502672 #7035A0 #8F4EC4 #AC7CD3 #C9AAE3

Accessibility & contrast

On white

5.18
#8F4EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8F4EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4EC4
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4EC4#FFFFFF#000000##FFFFFF
##8F4EC41.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#186BC8
Deuteranopia (green-blind)
#396DC1
Tritanopia (blue-blind)
#866582
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f4ec4;
/* rgb */ color: rgb(143, 78, 196);
/* oklch */ color: oklch(55.5% 0.181 306.8);
Tailwind
colors: {
  custom: {
    50: '#b383d6',
    500: '#8f4ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8f4ec4;
$custom-light: #b383d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4ec4",
  "rgb": {
    "r": 143,
    "g": 78,
    "b": 196
  },
  "hsl": {
    "h": 273.051,
    "s": 50,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55546,
    "c": 0.18094,
    "h": 306.8
  },
  "luminance": 0.15274
}

Semantic roles & 50–950 ramp

primary
#8F4EC4
secondary
#B4D09E
accent
#DA4E8D
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8F4EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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