#8F40BD#8F40BD

#8F40BD is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.3% C 0.193 H 310.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8F40BD
RGBrgb(143, 64, 189)
HSLhsl(278, 49%, 50%)
HSVhsv(278, 66%, 74%)
CMYKcmyk(24.3%, 66.1%, 0%, 25.9%)
CIE-LABlab(43.03, 54.13, -52.00)
CIE-LCHlch(43.03, 75.06, 316.15°)
OKLaboklab(53.25% 0.1255 -0.1468)
OKLCHoklch(53.25% 0.193 310.5)
XYZxyz(22.3446, 13.1810, 49.5013)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BD #6EBD40
analogous
#5140BD #8F40BD #BD40AD
triadic
#8F40BD #BD8F40 #40BD8F
tetradic
#8F40BD #BD5140 #6EBD40 #40ADBD
square
#8F40BD #BD5140 #6EBD40 #40ADBD
split-complementary
#8F40BD #ADBD40 #40BD51
monochromatic
#4A2162 #6C318F #8F40BD #AA6DCD #C49ADD

Accessibility & contrast

On white

5.78
#8F40BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8F40BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BD
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BD#FFFFFF#000000##FFFFFF
##8F40BD1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#895A79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f40bd;
/* rgb */ color: rgb(143, 64, 189);
/* oklch */ color: oklch(53.3% 0.193 310.5);
Tailwind
colors: {
  custom: {
    50: '#b47ad2',
    500: '#8f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #8f40bd;
$custom-light: #b47ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40bd",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 277.92,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53254,
    "c": 0.19311,
    "h": 310.5
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#8F40BD
secondary
#A5C990
accent
#D94F82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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