#8940D7#8940D7

#8940D7 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.4% C 0.219 H 301.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8940D7
RGBrgb(137, 64, 215)
HSLhsl(269, 65%, 55%)
HSVhsv(269, 70%, 84%)
CMYKcmyk(36.3%, 70.2%, 0%, 15.7%)
CIE-LABlab(44.08, 58.88, -65.40)
CIE-LCHlch(44.08, 88.00, 312.00°)
OKLaboklab(54.41% 0.1143 -0.1864)
OKLCHoklch(54.41% 0.219 301.5)
XYZxyz(24.4127, 13.8913, 65.6719)
Luminance0.1389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D7 #8ED740
analogous
#4042D7 #8940D7 #D540D7
triadic
#8940D7 #D78940 #40D789
tetradic
#8940D7 #D74042 #8ED740 #40D7D5
square
#8940D7 #D74042 #8ED740 #40D7D5
split-complementary
#8940D7 #D7D540 #42D740
monochromatic
#4D1B81 #6B26B4 #8940D7 #A873E2 #C8A5EC

Accessibility & contrast

On white

5.56
#8940D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8940D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D7#FFFFFF#000000##FFFFFF
##8940D71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#786487
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8940d7;
/* rgb */ color: rgb(137, 64, 215);
/* oklch */ color: oklch(54.4% 0.219 301.5);
Tailwind
colors: {
  custom: {
    50: '#b17be4',
    500: '#8940d7',
    950: '#000000',
  },
}
SCSS
$custom: #8940d7;
$custom-light: #b17be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d7",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 269.007,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54405,
    "c": 0.21862,
    "h": 301.5
  },
  "luminance": 0.13891
}

Semantic roles & 50–950 ramp

primary
#8940D7
secondary
#BAD99A
accent
#E83F97
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8940D7

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

Preview Lab → · Contrast checker → · Palette generator →

#8940D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva