#8940D9#8940D9

#8940D9 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.221 H 301.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8940D9
RGBrgb(137, 64, 217)
HSLhsl(269, 67%, 55%)
HSVhsv(269, 71%, 85%)
CMYKcmyk(36.9%, 70.5%, 0%, 14.9%)
CIE-LABlab(44.23, 59.36, -66.30)
CIE-LCHlch(44.23, 88.99, 311.84°)
OKLaboklab(54.56% 0.1139 -0.189)
OKLCHoklch(54.56% 0.221 301.1)
XYZxyz(24.6713, 13.9948, 67.0337)
Luminance0.1399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D9 #90D940
analogous
#4044D9 #8940D9 #D540D9
triadic
#8940D9 #D98940 #40D989
tetradic
#8940D9 #D94044 #90D940 #40D9D5
square
#8940D9 #D94044 #90D940 #40D9D5
split-complementary
#8940D9 #D9D540 #44D940
monochromatic
#4D1A84 #6B24B7 #8940D9 #A973E3 #C8A6ED

Accessibility & contrast

On white

5.53
#8940D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8940D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D9
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D9#FFFFFF#000000##FFFFFF
##8940D91.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#776588
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8940d9;
/* rgb */ color: rgb(137, 64, 217);
/* oklch */ color: oklch(54.6% 0.221 301.1);
Tailwind
colors: {
  custom: {
    50: '#b27be6',
    500: '#8940d9',
    950: '#000000',
  },
}
SCSS
$custom: #8940d9;
$custom-light: #b27be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d9",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 268.627,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54557,
    "c": 0.22071,
    "h": 301.1
  },
  "luminance": 0.13995
}

Semantic roles & 50–950 ramp

primary
#8940D9
secondary
#BCDA9A
accent
#EA3E98
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8940D9

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

Preview Lab → · Contrast checker → · Palette generator →

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