#8F40BC#8F40BC

#8F40BC is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.2% C 0.192 H 310.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8F40BC
RGBrgb(143, 64, 188)
HSLhsl(278, 49%, 49%)
HSVhsv(278, 66%, 74%)
CMYKcmyk(23.9%, 66%, 0%, 26.3%)
CIE-LABlab(42.97, 53.91, -51.52)
CIE-LCHlch(42.97, 74.57, 316.30°)
OKLaboklab(53.19% 0.1255 -0.1454)
OKLCHoklch(53.19% 0.192 310.8)
XYZxyz(22.2365, 13.1378, 48.9317)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BC #6DBC40
analogous
#5140BC #8F40BC #BC40AB
triadic
#8F40BC #BC8F40 #40BC8F
tetradic
#8F40BC #BC5140 #6DBC40 #40ABBC
square
#8F40BC #BC5140 #6DBC40 #40ABBC
split-complementary
#8F40BC #ABBC40 #40BC51
monochromatic
#4A2161 #6C308E #8F40BC #AA6CCD #C49ADD

Accessibility & contrast

On white

5.79
#8F40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8F40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BC#FFFFFF#000000##FFFFFF
##8F40BC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C0
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#895979
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f40bc;
/* rgb */ color: rgb(143, 64, 188);
/* oklch */ color: oklch(53.2% 0.192 310.8);
Tailwind
colors: {
  custom: {
    50: '#b47ad1',
    500: '#8f40bc',
    950: '#000000',
  },
}
SCSS
$custom: #8f40bc;
$custom-light: #b47ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40bc",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 278.226,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.53187,
    "c": 0.19209,
    "h": 310.8
  },
  "luminance": 0.13137
}

Semantic roles & 50–950 ramp

primary
#8F40BC
secondary
#A4C98F
accent
#D94F81
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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