#8F40D6#8F40D6

#8F40D6 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.219 H 304.1°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8F40D6
RGBrgb(143, 64, 214)
HSLhsl(272, 65%, 55%)
HSVhsv(272, 70%, 84%)
CMYKcmyk(33.2%, 70.1%, 0%, 16.1%)
CIE-LABlab(44.75, 59.78, -63.70)
CIE-LCHlch(44.75, 87.36, 313.18°)
OKLaboklab(55.02% 0.1226 -0.1812)
OKLCHoklch(55.02% 0.219 304.1)
XYZxyz(25.2959, 14.3615, 65.0447)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40D6 #87D640
analogous
#4440D6 #8F40D6 #D640D2
triadic
#8F40D6 #D68F40 #40D68F
tetradic
#8F40D6 #D64440 #87D640 #40D2D6
square
#8F40D6 #D64440 #87D640 #40D2D6
split-complementary
#8F40D6 #D2D640 #40D644
monochromatic
#501B80 #7026B2 #8F40D6 #AD72E1 #CAA5EC

Accessibility & contrast

On white

5.42
#8F40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8F40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40D6
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40D6#FFFFFF#000000##FFFFFF
##8F40D61.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#816387
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f40d6;
/* rgb */ color: rgb(143, 64, 214);
/* oklch */ color: oklch(55.0% 0.219 304.1);
Tailwind
colors: {
  custom: {
    50: '#b57be4',
    500: '#8f40d6',
    950: '#000000',
  },
}
SCSS
$custom: #8f40d6;
$custom-light: #b57be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40d6",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 271.6,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.55021,
    "c": 0.21875,
    "h": 304.1
  },
  "luminance": 0.14361
}

Semantic roles & 50–950 ramp

primary
#8F40D6
secondary
#B7D999
accent
#E8408F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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