#8C40DD#8C40DD

#8C40DD is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.225 H 301.4°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8C40DD
RGBrgb(140, 64, 221)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 71%, 87%)
CMYKcmyk(36.7%, 71%, 0%, 13.3%)
CIE-LABlab(44.89, 60.85, -67.49)
CIE-LCHlch(44.89, 90.88, 312.04°)
OKLaboklab(55.2% 0.1173 -0.1924)
OKLCHoklch(55.2% 0.225 301.4)
XYZxyz(25.6966, 14.4626, 69.8303)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C40DD #91DD40
analogous
#4042DD #8C40DD #DB40DD
triadic
#8C40DD #DD8C40 #40DD8C
tetradic
#8C40DD #DD4042 #91DD40 #40DDDB
square
#8C40DD #DD4042 #91DD40 #40DDDB
split-complementary
#8C40DD #DDDB40 #42DD40
monochromatic
#4F198A #6D22BE #8C40DD #AB74E6 #CBA8EF

Accessibility & contrast

On white

5.39
#8C40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8C40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C40DD
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C40DD#FFFFFF#000000##FFFFFF
##8C40DD1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#0069DA
Tritanopia (blue-blind)
#7A668B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8c40dd;
/* rgb */ color: rgb(140, 64, 221);
/* oklch */ color: oklch(55.2% 0.225 301.4);
Tailwind
colors: {
  custom: {
    50: '#b47be9',
    500: '#8c40dd',
    950: '#000000',
  },
}
SCSS
$custom: #8c40dd;
$custom-light: #b47be9;
$custom-dark: #000000;
JSON
{
  "hex": "#8c40dd",
  "rgb": {
    "r": 140,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 269.045,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55202,
    "c": 0.22537,
    "h": 301.4
  },
  "luminance": 0.14463
}

Semantic roles & 50–950 ramp

primary
#8C40DD
secondary
#BDDD9C
accent
#ED3B97
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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