#8F40BF#8F40BF

#8F40BF is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.195 H 309.9°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8F40BF
RGBrgb(143, 64, 191)
HSLhsl(277, 50%, 50%)
HSVhsv(277, 66%, 75%)
CMYKcmyk(25.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(43.17, 54.57, -52.96)
CIE-LCHlch(43.17, 76.04, 315.86°)
OKLaboklab(53.39% 0.1253 -0.1496)
OKLCHoklch(53.39% 0.195 309.9)
XYZxyz(22.5632, 13.2685, 50.6526)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BF #70BF40
analogous
#5040BF #8F40BF #BF40AF
triadic
#8F40BF #BF8F40 #40BF8F
tetradic
#8F40BF #BF5040 #70BF40 #40AFBF
square
#8F40BF #BF5040 #70BF40 #40AFBF
split-complementary
#8F40BF #AFBF40 #40BF50
monochromatic
#4A2163 #6D3191 #8F40BF #AA6ECE #C59CDE

Accessibility & contrast

On white

5.75
#8F40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8F40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BF
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BF#FFFFFF#000000##FFFFFF
##8F40BF1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C3
Deuteranopia (green-blind)
#2D67BC
Tritanopia (blue-blind)
#885A7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f40bf;
/* rgb */ color: rgb(143, 64, 191);
/* oklch */ color: oklch(53.4% 0.195 309.9);
Tailwind
colors: {
  custom: {
    50: '#b47ad3',
    500: '#8f40bf',
    950: '#000000',
  },
}
SCSS
$custom: #8f40bf;
$custom-light: #b47ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40bf",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 277.323,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.53389,
    "c": 0.19517,
    "h": 309.9
  },
  "luminance": 0.13268
}

Semantic roles & 50–950 ramp

primary
#8F40BF
secondary
#A6CA91
accent
#D94E83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8F40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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