#8940CE#8940CE

#8940CE is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.209 H 303.6°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8940CE
RGBrgb(137, 64, 206)
HSLhsl(271, 59%, 53%)
HSVhsv(271, 69%, 81%)
CMYKcmyk(33.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.42, 56.75, -61.29)
CIE-LCHlch(43.42, 83.53, 312.80°)
OKLaboklab(53.73% 0.1157 -0.1743)
OKLCHoklch(53.73% 0.209 303.6)
XYZxyz(23.2879, 13.4414, 59.7481)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940CE #85CE40
analogous
#4240CE #8940CE #CE40CC
triadic
#8940CE #CE8940 #40CE89
tetradic
#8940CE #CE4240 #85CE40 #40CCCE
square
#8940CE #CE4240 #85CE40 #40CCCE
split-complementary
#8940CE #CCCE40 #40CE42
monochromatic
#4B1E75 #6A2BA6 #8940CE #A771DA #C5A1E7

Accessibility & contrast

On white

5.69
#8940CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8940CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940CE
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940CE#FFFFFF#000000##FFFFFF
##8940CE1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#7B6182
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8940ce;
/* rgb */ color: rgb(137, 64, 206);
/* oklch */ color: oklch(53.7% 0.209 303.6);
Tailwind
colors: {
  custom: {
    50: '#b17ade',
    500: '#8940ce',
    950: '#000000',
  },
}
SCSS
$custom: #8940ce;
$custom-light: #b17ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8940ce",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 270.845,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53732,
    "c": 0.20918,
    "h": 303.6
  },
  "luminance": 0.13441
}

Semantic roles & 50–950 ramp

primary
#8940CE
secondary
#B4D496
accent
#E24592
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940CE

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

Preview Lab → · Contrast checker → · Palette generator →

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