#8F40C7#8F40C7

#8F40C7 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.203 H 307.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8F40C7
RGBrgb(143, 64, 199)
HSLhsl(275, 55%, 52%)
HSVhsv(275, 68%, 78%)
CMYKcmyk(28.1%, 67.8%, 0%, 22%)
CIE-LABlab(43.70, 56.36, -56.75)
CIE-LCHlch(43.70, 79.98, 314.80°)
OKLaboklab(53.94% 0.1246 -0.1608)
OKLCHoklch(53.94% 0.203 307.8)
XYZxyz(23.4677, 13.6303, 55.4164)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40C7 #78C740
analogous
#4C40C7 #8F40C7 #C740BC
triadic
#8F40C7 #C78F40 #40C78F
tetradic
#8F40C7 #C74C40 #78C740 #40BCC7
square
#8F40C7 #C74C40 #78C740 #40BCC7
split-complementary
#8F40C7 #BCC740 #40C74C
monochromatic
#4D206D #6E2E9C #8F40C7 #AB6FD5 #C79FE3

Accessibility & contrast

On white

5.64
#8F40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8F40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40C7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40C7#FFFFFF#000000##FFFFFF
##8F40C71.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#2068C4
Tritanopia (blue-blind)
#865D7E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8f40c7;
/* rgb */ color: rgb(143, 64, 199);
/* oklch */ color: oklch(53.9% 0.203 307.8);
Tailwind
colors: {
  custom: {
    50: '#b47bd9',
    500: '#8f40c7',
    950: '#000000',
  },
}
SCSS
$custom: #8f40c7;
$custom-light: #b47bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40c7",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 275.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.20337,
    "h": 307.8
  },
  "luminance": 0.1363
}

Semantic roles & 50–950 ramp

primary
#8F40C7
secondary
#ACCF94
accent
#DE4A87
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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