#8F4EBA#8F4EBA

#8F4EBA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.170 H 309.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8F4EBA
RGBrgb(143, 78, 186)
HSLhsl(276, 44%, 52%)
HSVhsv(276, 58%, 73%)
CMYKcmyk(23.1%, 58.1%, 0%, 27.1%)
CIE-LABlab(45.41, 46.50, -46.45)
CIE-LCHlch(45.41, 65.73, 315.03°)
OKLaboklab(54.91% 0.1085 -0.1306)
OKLCHoklch(54.91% 0.17 309.7)
XYZxyz(22.9133, 14.8340, 48.1010)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4EBA #79BA4E
analogous
#594EBA #8F4EBA #BA4EAF
triadic
#8F4EBA #BA8F4E #4EBA8F
tetradic
#8F4EBA #BA594E #79BA4E #4EAFBA
square
#8F4EBA #BA594E #79BA4E #4EAFBA
split-complementary
#8F4EBA #AFBA4E #4EBA59
monochromatic
#4D2866 #6E3992 #8F4EBA #AB7ACB #C7A6DC

Accessibility & contrast

On white

5.29
#8F4EBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8F4EBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4EBA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4EBA#FFFFFF#000000##FFFFFF
##8F4EBA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2869BD
Deuteranopia (green-blind)
#426DB7
Tritanopia (blue-blind)
#89627C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f4eba;
/* rgb */ color: rgb(143, 78, 186);
/* oklch */ color: oklch(54.9% 0.170 309.7);
Tailwind
colors: {
  custom: {
    50: '#b382cf',
    500: '#8f4eba',
    950: '#000000',
  },
}
SCSS
$custom: #8f4eba;
$custom-light: #b382cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4eba",
  "rgb": {
    "r": 143,
    "g": 78,
    "b": 186
  },
  "hsl": {
    "h": 276.111,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54914,
    "c": 0.16976,
    "h": 309.7
  },
  "luminance": 0.14834
}

Semantic roles & 50–950 ramp

primary
#8F4EBA
secondary
#ADCA9A
accent
#D45487
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8F4EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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