#8F40CE#8F40CE

#8F40CE is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.211 H 306.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#8F40CE
RGBrgb(143, 64, 206)
HSLhsl(273, 59%, 53%)
HSVhsv(273, 69%, 81%)
CMYKcmyk(30.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(44.18, 57.94, -60.02)
CIE-LCHlch(44.18, 83.43, 313.99°)
OKLaboklab(54.44% 0.1237 -0.1704)
OKLCHoklch(54.44% 0.211 306)
XYZxyz(24.2992, 13.9629, 59.7955)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CE #7FCE40
analogous
#4840CE #8F40CE #CE40C6
triadic
#8F40CE #CE8F40 #40CE8F
tetradic
#8F40CE #CE4840 #7FCE40 #40C6CE
square
#8F40CE #CE4840 #7FCE40 #40C6CE
split-complementary
#8F40CE #C6CE40 #40CE48
monochromatic
#4F1E75 #6F2BA6 #8F40CE #AC71DA #C8A1E7

Accessibility & contrast

On white

5.54
#8F40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8F40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CE#FFFFFF#000000##FFFFFF
##8F40CE1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#0E69CB
Tritanopia (blue-blind)
#846082
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f40ce;
/* rgb */ color: rgb(143, 64, 206);
/* oklch */ color: oklch(54.4% 0.211 306.0);
Tailwind
colors: {
  custom: {
    50: '#b57bde',
    500: '#8f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #8f40ce;
$custom-light: #b57bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40ce",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 273.38,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.21055,
    "h": 306
  },
  "luminance": 0.13963
}

Semantic roles & 50–950 ramp

primary
#8F40CE
secondary
#B1D496
accent
#E2458B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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