#8940D4#8940D4

#8940D4 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.215 H 302.2°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8940D4
RGBrgb(137, 64, 212)
HSLhsl(270, 63%, 54%)
HSVhsv(270, 70%, 83%)
CMYKcmyk(35.4%, 69.8%, 0%, 16.9%)
CIE-LABlab(43.86, 58.17, -64.04)
CIE-LCHlch(43.86, 86.51, 312.25°)
OKLaboklab(54.18% 0.1148 -0.1824)
OKLCHoklch(54.18% 0.215 302.2)
XYZxyz(24.0308, 13.7386, 63.6604)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D4 #8BD440
analogous
#4041D4 #8940D4 #D340D4
triadic
#8940D4 #D48940 #40D489
tetradic
#8940D4 #D44041 #8BD440 #40D4D3
square
#8940D4 #D44041 #8BD440 #40D4D3
split-complementary
#8940D4 #D4D340 #41D440
monochromatic
#4C1C7D #6A27AF #8940D4 #A872DF #C7A4EA

Accessibility & contrast

On white

5.60
#8940D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8940D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D4
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D4#FFFFFF#000000##FFFFFF
##8940D41.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#796386
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8940d4;
/* rgb */ color: rgb(137, 64, 212);
/* oklch */ color: oklch(54.2% 0.215 302.2);
Tailwind
colors: {
  custom: {
    50: '#b17be2',
    500: '#8940d4',
    950: '#000000',
  },
}
SCSS
$custom: #8940d4;
$custom-light: #b17be2;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d4",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 269.595,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54178,
    "c": 0.21548,
    "h": 302.2
  },
  "luminance": 0.13739
}

Semantic roles & 50–950 ramp

primary
#8940D4
secondary
#B8D798
accent
#E64295
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8940D4

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

Preview Lab → · Contrast checker → · Palette generator →

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