#8F40DD#8F40DD

#8F40DD is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.5% C 0.226 H 302.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8F40DD
RGBrgb(143, 64, 221)
HSLhsl(270, 70%, 56%)
HSVhsv(270, 71%, 87%)
CMYKcmyk(35.3%, 71%, 0%, 13.3%)
CIE-LABlab(45.26, 61.40, -66.88)
CIE-LCHlch(45.26, 90.79, 312.56°)
OKLaboklab(55.54% 0.1214 -0.1905)
OKLCHoklch(55.54% 0.226 302.5)
XYZxyz(26.2091, 14.7268, 69.8544)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F40DD #8EDD40
analogous
#4040DD #8F40DD #DD40DD
triadic
#8F40DD #DD8F40 #40DD8F
tetradic
#8F40DD #DD4040 #8EDD40 #40DDDD
square
#8F40DD #DD4040 #8EDD40 #40DDDD
split-complementary
#8F40DD #DDDD40 #40DD40
monochromatic
#52198A #7022BE #8F40DD #AD74E6 #CCA8EF

Accessibility & contrast

On white

5.32
#8F40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8F40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F40DD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F40DD#FFFFFF#000000##FFFFFF
##8F40DD1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#7F668B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f40dd;
/* rgb */ color: rgb(143, 64, 221);
/* oklch */ color: oklch(55.5% 0.226 302.5);
Tailwind
colors: {
  custom: {
    50: '#b67be9',
    500: '#8f40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8f40dd;
$custom-light: #b67be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f40dd",
  "rgb": {
    "r": 143,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 270.191,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55544,
    "c": 0.22592,
    "h": 302.5
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#8F40DD
secondary
#BCDD9C
accent
#ED3B93
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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