#8940D2#8940D2

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

Color values

HEX#8940D2
RGBrgb(137, 64, 210)
HSLhsl(270, 62%, 54%)
HSVhsv(270, 70%, 82%)
CMYKcmyk(34.8%, 69.5%, 0%, 17.6%)
CIE-LABlab(43.71, 57.69, -63.13)
CIE-LCHlch(43.71, 85.52, 312.43°)
OKLaboklab(54.03% 0.1151 -0.1797)
OKLCHoklch(54.03% 0.213 302.6)
XYZxyz(23.7800, 13.6383, 62.3399)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D2 #89D240
analogous
#4040D2 #8940D2 #D240D2
triadic
#8940D2 #D28940 #40D289
tetradic
#8940D2 #D24040 #89D240 #40D2D2
square
#8940D2 #D24040 #89D240 #40D2D2
split-complementary
#8940D2 #D2D240 #40D240
monochromatic
#4C1D7B #6A29AC #8940D2 #A872DE #C6A3E9

Accessibility & contrast

On white

5.63
#8940D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8940D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D2#FFFFFF#000000##FFFFFF
##8940D21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8940d2;
/* rgb */ color: rgb(137, 64, 210);
/* oklch */ color: oklch(54.0% 0.213 302.6);
Tailwind
colors: {
  custom: {
    50: '#b17ae1',
    500: '#8940d2',
    950: '#000000',
  },
}
SCSS
$custom: #8940d2;
$custom-light: #b17ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d2",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 270,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54029,
    "c": 0.21338,
    "h": 302.6
  },
  "luminance": 0.13638
}

Semantic roles & 50–950 ramp

primary
#8940D2
secondary
#B7D698
accent
#E54394
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940D2

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

Preview Lab → · Contrast checker → · Palette generator →

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