#8940C4#8940C4

#8940C4 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 53.0% C 0.199 H 306.1°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8940C4
RGBrgb(137, 64, 196)
HSLhsl(273, 53%, 51%)
HSVhsv(273, 67%, 77%)
CMYKcmyk(30.1%, 67.3%, 0%, 23.1%)
CIE-LABlab(42.72, 54.41, -56.63)
CIE-LCHlch(42.72, 78.54, 313.86°)
OKLaboklab(53.01% 0.1169 -0.1606)
OKLCHoklch(53.01% 0.199 306.1)
XYZxyz(22.1116, 12.9709, 53.5526)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940C4 #7BC440
analogous
#4740C4 #8940C4 #C440BD
triadic
#8940C4 #C48940 #40C489
tetradic
#8940C4 #C44740 #7BC440 #40BDC4
square
#8940C4 #C44740 #7BC440 #40BDC4
split-complementary
#8940C4 #BDC440 #40C447
monochromatic
#492069 #692F98 #8940C4 #A66FD2 #C39EE1

Accessibility & contrast

On white

5.84
#8940C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8940C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940C4
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940C4#FFFFFF#000000##FFFFFF
##8940C41.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#1A65C1
Tritanopia (blue-blind)
#7F5D7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8940c4;
/* rgb */ color: rgb(137, 64, 196);
/* oklch */ color: oklch(53.0% 0.199 306.1);
Tailwind
colors: {
  custom: {
    50: '#b07ad7',
    500: '#8940c4',
    950: '#000000',
  },
}
SCSS
$custom: #8940c4;
$custom-light: #b07ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8940c4",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 273.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53008,
    "c": 0.19866,
    "h": 306.1
  },
  "luminance": 0.12971
}

Semantic roles & 50–950 ramp

primary
#8940C4
secondary
#ADCD93
accent
#DC4C8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8940C4

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

Preview Lab → · Contrast checker → · Palette generator →

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