#8F40D2#8F40D2

#8F40D2 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.215 H 305.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8F40D2
RGBrgb(143, 64, 210)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 70%, 82%)
CMYKcmyk(31.9%, 69.5%, 0%, 17.6%)
CIE-LABlab(44.46, 58.86, -61.87)
CIE-LCHlch(44.46, 85.39, 313.57°)
OKLaboklab(54.73% 0.1232 -0.1758)
OKLCHoklch(54.73% 0.215 305)
XYZxyz(24.7913, 14.1597, 62.3873)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40D2 #83D240
analogous
#4640D2 #8F40D2 #D240CC
triadic
#8F40D2 #D28F40 #40D28F
tetradic
#8F40D2 #D24640 #83D240 #40CCD2
square
#8F40D2 #D24640 #83D240 #40CCD2
split-complementary
#8F40D2 #CCD240 #40D246
monochromatic
#501D7B #7029AC #8F40D2 #AC72DE #C9A3E9

Accessibility & contrast

On white

5.48
#8F40D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8F40D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40D2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40D2#FFFFFF#000000##FFFFFF
##8F40D21.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#836284
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f40d2;
/* rgb */ color: rgb(143, 64, 210);
/* oklch */ color: oklch(54.7% 0.215 305.0);
Tailwind
colors: {
  custom: {
    50: '#b57be1',
    500: '#8f40d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f40d2;
$custom-light: #b57be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40d2",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 272.466,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54727,
    "c": 0.21465,
    "h": 305
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#8F40D2
secondary
#B4D698
accent
#E5438D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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