#8F40CF#8F40CF

#8F40CF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.212 H 305.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8F40CF
RGBrgb(143, 64, 207)
HSLhsl(273, 60%, 53%)
HSVhsv(273, 69%, 81%)
CMYKcmyk(30.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(44.25, 58.17, -60.49)
CIE-LCHlch(44.25, 83.92, 313.88°)
OKLaboklab(54.51% 0.1236 -0.1717)
OKLCHoklch(54.51% 0.212 305.7)
XYZxyz(24.4211, 14.0116, 60.4374)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CF #80CF40
analogous
#4740CF #8F40CF #CF40C7
triadic
#8F40CF #CF8F40 #40CF8F
tetradic
#8F40CF #CF4740 #80CF40 #40C7CF
square
#8F40CF #CF4740 #80CF40 #40C7CF
split-complementary
#8F40CF #C7CF40 #40CF47
monochromatic
#4F1E77 #6F2AA8 #8F40CF #AC71DB #C8A2E8

Accessibility & contrast

On white

5.52
#8F40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8F40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CF
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CF#FFFFFF#000000##FFFFFF
##8F40CF1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0969CC
Tritanopia (blue-blind)
#846183
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f40cf;
/* rgb */ color: rgb(143, 64, 207);
/* oklch */ color: oklch(54.5% 0.212 305.7);
Tailwind
colors: {
  custom: {
    50: '#b57bde',
    500: '#8f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #8f40cf;
$custom-light: #b57bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40cf",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 273.147,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54509,
    "c": 0.21158,
    "h": 305.7
  },
  "luminance": 0.14011
}

Semantic roles & 50–950 ramp

primary
#8F40CF
secondary
#B2D497
accent
#E3458C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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