#8F40D5#8F40D5

#8F40D5 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.218 H 304.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8F40D5
RGBrgb(143, 64, 213)
HSLhsl(272, 64%, 54%)
HSVhsv(272, 70%, 84%)
CMYKcmyk(32.9%, 70%, 0%, 16.5%)
CIE-LABlab(44.68, 59.55, -63.25)
CIE-LCHlch(44.68, 86.87, 313.27°)
OKLaboklab(54.95% 0.1227 -0.1798)
OKLCHoklch(54.95% 0.218 304.3)
XYZxyz(25.1686, 14.3106, 64.3742)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40D5 #86D540
analogous
#4540D5 #8F40D5 #D540D0
triadic
#8F40D5 #D58F40 #40D58F
tetradic
#8F40D5 #D54540 #86D540 #40D0D5
square
#8F40D5 #D54540 #86D540 #40D0D5
split-complementary
#8F40D5 #D0D540 #40D545
monochromatic
#501C7F #7027B1 #8F40D5 #AC72E0 #CAA4EB

Accessibility & contrast

On white

5.44
#8F40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8F40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40D5
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40D5#FFFFFF#000000##FFFFFF
##8F40D51.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#826386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f40d5;
/* rgb */ color: rgb(143, 64, 213);
/* oklch */ color: oklch(54.9% 0.218 304.3);
Tailwind
colors: {
  custom: {
    50: '#b57be3',
    500: '#8f40d5',
    950: '#000000',
  },
}
SCSS
$custom: #8f40d5;
$custom-light: #b57be3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40d5",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 271.812,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54947,
    "c": 0.21774,
    "h": 304.3
  },
  "luminance": 0.14311
}

Semantic roles & 50–950 ramp

primary
#8F40D5
secondary
#B6D899
accent
#E7418F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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