#8F4ECA#8F4ECA

#8F4ECA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.188 H 305.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8F4ECA
RGBrgb(143, 78, 202)
HSLhsl(271, 54%, 55%)
HSVhsv(271, 61%, 79%)
CMYKcmyk(29.2%, 61.4%, 0%, 20.8%)
CIE-LABlab(46.38, 50.23, -54.16)
CIE-LCHlch(46.38, 73.87, 312.84°)
OKLaboklab(55.94% 0.1083 -0.1532)
OKLCHoklch(55.94% 0.188 305.3)
XYZxyz(24.7104, 15.5528, 57.5659)
Luminance0.1555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4ECA #89CA4E
analogous
#514ECA #8F4ECA #CA4EC7
triadic
#8F4ECA #CA8F4E #4ECA8F
tetradic
#8F4ECA #CA514E #89CA4E #4EC7CA
square
#8F4ECA #CA514E #89CA4E #4EC7CA
split-complementary
#8F4ECA #C7CA4E #4ECA51
monochromatic
#512479 #7032A8 #8F4ECA #AD7DD8 #CBACE6

Accessibility & contrast

On white

5.11
#8F4ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8F4ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4ECA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4ECA#FFFFFF#000000##FFFFFF
##8F4ECA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036CCE
Deuteranopia (green-blind)
#326EC7
Tritanopia (blue-blind)
#856785
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8f4eca;
/* rgb */ color: rgb(143, 78, 202);
/* oklch */ color: oklch(55.9% 0.188 305.3);
Tailwind
colors: {
  custom: {
    50: '#b483db',
    500: '#8f4eca',
    950: '#000000',
  },
}
SCSS
$custom: #8f4eca;
$custom-light: #b483db;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4eca",
  "rgb": {
    "r": 143,
    "g": 78,
    "b": 202
  },
  "hsl": {
    "h": 271.452,
    "s": 53.913,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55939,
    "c": 0.18765,
    "h": 305.3
  },
  "luminance": 0.15553
}

Semantic roles & 50–950 ramp

primary
#8F4ECA
secondary
#B9D4A0
accent
#DD4B90
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8F4ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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