#8F40D4#8F40D4

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

Color values

HEX#8F40D4
RGBrgb(143, 64, 212)
HSLhsl(272, 63%, 54%)
HSVhsv(272, 70%, 83%)
CMYKcmyk(32.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(44.60, 59.32, -62.79)
CIE-LCHlch(44.60, 86.38, 313.37°)
OKLaboklab(54.87% 0.1229 -0.1785)
OKLCHoklch(54.87% 0.217 304.5)
XYZxyz(25.0421, 14.2600, 63.7078)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40D4 #85D440
analogous
#4540D4 #8F40D4 #D440CF
triadic
#8F40D4 #D48F40 #40D48F
tetradic
#8F40D4 #D44540 #85D440 #40CFD4
square
#8F40D4 #D44540 #85D440 #40CFD4
split-complementary
#8F40D4 #CFD440 #40D445
monochromatic
#501C7D #7027AF #8F40D4 #AC72DF #CAA4EA

Accessibility & contrast

On white

5.45
#8F40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8F40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40D4
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40D4#FFFFFF#000000##FFFFFF
##8F40D41.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#826286
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f40d4;
/* rgb */ color: rgb(143, 64, 212);
/* oklch */ color: oklch(54.9% 0.217 304.5);
Tailwind
colors: {
  custom: {
    50: '#b57be2',
    500: '#8f40d4',
    950: '#000000',
  },
}
SCSS
$custom: #8f40d4;
$custom-light: #b57be2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40d4",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 272.027,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54873,
    "c": 0.21671,
    "h": 304.5
  },
  "luminance": 0.1426
}

Semantic roles & 50–950 ramp

primary
#8F40D4
secondary
#B6D798
accent
#E6428E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8F40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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