#8F40BA#8F40BA

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

Color values

HEX#8F40BA
RGBrgb(143, 64, 186)
HSLhsl(279, 49%, 49%)
HSVhsv(279, 66%, 73%)
CMYKcmyk(23.1%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.84, 53.47, -50.56)
CIE-LCHlch(42.84, 73.59, 316.61°)
OKLaboklab(53.05% 0.1257 -0.1426)
OKLCHoklch(53.05% 0.19 311.4)
XYZxyz(22.0224, 13.0521, 47.8041)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40BA #6BBA40
analogous
#5240BA #8F40BA #BA40A8
triadic
#8F40BA #BA8F40 #40BA8F
tetradic
#8F40BA #BA5240 #6BBA40 #40A8BA
square
#8F40BA #BA5240 #6BBA40 #40A8BA
split-complementary
#8F40BA #A8BA40 #40BA52
monochromatic
#49215F #6C308C #8F40BA #AA6BCC #C499DC

Accessibility & contrast

On white

5.82
#8F40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8F40BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40BA
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40BA#FFFFFF#000000##FFFFFF
##8F40BA1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#8A5877
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8f40ba;
/* rgb */ color: rgb(143, 64, 186);
/* oklch */ color: oklch(53.1% 0.190 311.4);
Tailwind
colors: {
  custom: {
    50: '#b37acf',
    500: '#8f40ba',
    950: '#000000',
  },
}
SCSS
$custom: #8f40ba;
$custom-light: #b37acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40ba",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 278.852,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.53053,
    "c": 0.19004,
    "h": 311.4
  },
  "luminance": 0.13052
}

Semantic roles & 50–950 ramp

primary
#8F40BA
secondary
#A2C88E
accent
#D84F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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