#8F40CC#8F40CC

#8F40CC is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.3% C 0.208 H 306.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8F40CC
RGBrgb(143, 64, 204)
HSLhsl(274, 58%, 53%)
HSVhsv(274, 69%, 80%)
CMYKcmyk(29.9%, 68.6%, 0%, 20%)
CIE-LABlab(44.04, 57.49, -59.09)
CIE-LCHlch(44.04, 82.44, 314.21°)
OKLaboklab(54.29% 0.124 -0.1676)
OKLCHoklch(54.29% 0.209 306.5)
XYZxyz(24.0578, 13.8663, 58.5241)
Luminance0.1387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CC #7DCC40
analogous
#4940CC #8F40CC #CC40C3
triadic
#8F40CC #CC8F40 #40CC8F
tetradic
#8F40CC #CC4940 #7DCC40 #40C3CC
square
#8F40CC #CC4940 #7DCC40 #40C3CC
split-complementary
#8F40CC #C3CC40 #40CC49
monochromatic
#4E1F73 #6F2CA3 #8F40CC #AB70D9 #C8A1E6

Accessibility & contrast

On white

5.57
#8F40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8F40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CC
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CC#FFFFFF#000000##FFFFFF
##8F40CC1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#1569C9
Tritanopia (blue-blind)
#855F81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f40cc;
/* rgb */ color: rgb(143, 64, 204);
/* oklch */ color: oklch(54.3% 0.208 306.5);
Tailwind
colors: {
  custom: {
    50: '#b57bdc',
    500: '#8f40cc',
    950: '#000000',
  },
}
SCSS
$custom: #8f40cc;
$custom-light: #b57bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40cc",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 273.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54294,
    "c": 0.2085,
    "h": 306.5
  },
  "luminance": 0.13866
}

Semantic roles & 50–950 ramp

primary
#8F40CC
secondary
#B0D295
accent
#E1478A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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