#8940D1#8940D1

#8940D1 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.212 H 302.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8940D1
RGBrgb(137, 64, 209)
HSLhsl(270, 61%, 54%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.4%, 69.4%, 0%, 18%)
CIE-LABlab(43.64, 57.46, -62.67)
CIE-LCHlch(43.64, 85.02, 312.52°)
OKLaboklab(53.95% 0.1152 -0.1783)
OKLCHoklch(53.95% 0.212 302.9)
XYZxyz(23.6559, 13.5886, 61.6858)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D1 #88D140
analogous
#4040D1 #8940D1 #D140D0
triadic
#8940D1 #D18940 #40D189
tetradic
#8940D1 #D14040 #88D140 #40D0D1
square
#8940D1 #D14040 #88D140 #40D0D1
split-complementary
#8940D1 #D0D140 #40D140
monochromatic
#4C1D79 #6A29AB #8940D1 #A771DD #C6A3E9

Accessibility & contrast

On white

5.65
#8940D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8940D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D1
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D1#FFFFFF#000000##FFFFFF
##8940D11.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0067CE
Tritanopia (blue-blind)
#7A6284
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8940d1;
/* rgb */ color: rgb(137, 64, 209);
/* oklch */ color: oklch(54.0% 0.212 302.9);
Tailwind
colors: {
  custom: {
    50: '#b17ae0',
    500: '#8940d1',
    950: '#000000',
  },
}
SCSS
$custom: #8940d1;
$custom-light: #b17ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d1",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 270.207,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53954,
    "c": 0.21233,
    "h": 302.9
  },
  "luminance": 0.13589
}

Semantic roles & 50–950 ramp

primary
#8940D1
secondary
#B6D597
accent
#E44493
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940D1

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

Preview Lab → · Contrast checker → · Palette generator →

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