#8940D5#8940D5

#8940D5 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.217 H 302.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8940D5
RGBrgb(137, 64, 213)
HSLhsl(269, 64%, 54%)
HSVhsv(269, 70%, 84%)
CMYKcmyk(35.7%, 70%, 0%, 16.5%)
CIE-LABlab(43.93, 58.40, -64.49)
CIE-LCHlch(43.93, 87.01, 312.16°)
OKLaboklab(54.25% 0.1146 -0.1837)
OKLCHoklch(54.25% 0.217 302)
XYZxyz(24.1573, 13.7892, 64.3268)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D5 #8CD540
analogous
#4042D5 #8940D5 #D340D5
triadic
#8940D5 #D58940 #40D589
tetradic
#8940D5 #D54042 #8CD540 #40D5D3
square
#8940D5 #D54042 #8CD540 #40D5D3
split-complementary
#8940D5 #D5D340 #42D540
monochromatic
#4C1C7F #6B27B1 #8940D5 #A872E0 #C7A4EB

Accessibility & contrast

On white

5.59
#8940D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8940D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D5#FFFFFF#000000##FFFFFF
##8940D51.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#796486
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8940d5;
/* rgb */ color: rgb(137, 64, 213);
/* oklch */ color: oklch(54.3% 0.217 302.0);
Tailwind
colors: {
  custom: {
    50: '#b17be3',
    500: '#8940d5',
    950: '#000000',
  },
}
SCSS
$custom: #8940d5;
$custom-light: #b17be3;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d5",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 269.396,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54254,
    "c": 0.21653,
    "h": 302
  },
  "luminance": 0.13789
}

Semantic roles & 50–950 ramp

primary
#8940D5
secondary
#B9D899
accent
#E74196
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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