#8F40CD#8F40CD

#8F40CD is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.210 H 306.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8F40CD
RGBrgb(143, 64, 205)
HSLhsl(274, 59%, 53%)
HSVhsv(274, 69%, 80%)
CMYKcmyk(30.2%, 68.8%, 0%, 19.6%)
CIE-LABlab(44.11, 57.71, -59.56)
CIE-LCHlch(44.11, 82.94, 314.10°)
OKLaboklab(54.37% 0.1239 -0.169)
OKLCHoklch(54.37% 0.21 306.2)
XYZxyz(24.1781, 13.9144, 59.1578)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40CD #7ECD40
analogous
#4840CD #8F40CD #CD40C4
triadic
#8F40CD #CD8F40 #40CD8F
tetradic
#8F40CD #CD4840 #7ECD40 #40C4CD
square
#8F40CD #CD4840 #7ECD40 #40C4CD
split-complementary
#8F40CD #C4CD40 #40CD48
monochromatic
#4E1E74 #6F2BA5 #8F40CD #AB71DA #C8A1E6

Accessibility & contrast

On white

5.55
#8F40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8F40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40CD
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40CD#FFFFFF#000000##FFFFFF
##8F40CD1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#1269CA
Tritanopia (blue-blind)
#846082
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f40cd;
/* rgb */ color: rgb(143, 64, 205);
/* oklch */ color: oklch(54.4% 0.210 306.2);
Tailwind
colors: {
  custom: {
    50: '#b57bdd',
    500: '#8f40cd',
    950: '#000000',
  },
}
SCSS
$custom: #8f40cd;
$custom-light: #b57bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40cd",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 273.617,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54366,
    "c": 0.20953,
    "h": 306.2
  },
  "luminance": 0.13914
}

Semantic roles & 50–950 ramp

primary
#8F40CD
secondary
#B1D396
accent
#E2468B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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