#8F40BB#8F40BB

#8F40BB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.191 H 311.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8F40BB
RGBrgb(143, 64, 187)
HSLhsl(279, 49%, 49%)
HSVhsv(279, 66%, 73%)
CMYKcmyk(23.5%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.91, 53.69, -51.04)
CIE-LCHlch(42.91, 74.08, 316.45°)
OKLaboklab(53.12% 0.1256 -0.144)
OKLCHoklch(53.12% 0.191 311.1)
XYZxyz(22.1290, 13.0948, 48.3659)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BB #6CBB40
analogous
#5240BB #8F40BB #BB40AA
triadic
#8F40BB #BB8F40 #40BB8F
tetradic
#8F40BB #BB5240 #6CBB40 #40AABB
square
#8F40BB #BB5240 #6CBB40 #40AABB
split-complementary
#8F40BB #AABB40 #40BB52
monochromatic
#492160 #6C308D #8F40BB #AA6CCD #C499DC

Accessibility & contrast

On white

5.80
#8F40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8F40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BB
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BB#FFFFFF#000000##FFFFFF
##8F40BB1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#895978
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f40bb;
/* rgb */ color: rgb(143, 64, 187);
/* oklch */ color: oklch(53.1% 0.191 311.1);
Tailwind
colors: {
  custom: {
    50: '#b37ad0',
    500: '#8f40bb',
    950: '#000000',
  },
}
SCSS
$custom: #8f40bb;
$custom-light: #b37ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40bb",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 278.537,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5312,
    "c": 0.19106,
    "h": 311.1
  },
  "luminance": 0.13094
}

Semantic roles & 50–950 ramp

primary
#8F40BB
secondary
#A3C88F
accent
#D94F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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