#8940D6#8940D6

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

Color values

HEX#8940D6
RGBrgb(137, 64, 214)
HSLhsl(269, 65%, 55%)
HSVhsv(269, 70%, 84%)
CMYKcmyk(36%, 70.1%, 0%, 16.1%)
CIE-LABlab(44.00, 58.64, -64.95)
CIE-LCHlch(44.00, 87.50, 312.08°)
OKLaboklab(54.33% 0.1144 -0.185)
OKLCHoklch(54.33% 0.218 301.7)
XYZxyz(24.2846, 13.8401, 64.9973)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940D6 #8DD640
analogous
#4042D6 #8940D6 #D440D6
triadic
#8940D6 #D68940 #40D689
tetradic
#8940D6 #D64042 #8DD640 #40D6D4
square
#8940D6 #D64042 #8DD640 #40D6D4
split-complementary
#8940D6 #D6D440 #42D640
monochromatic
#4C1B80 #6B26B2 #8940D6 #A872E1 #C7A5EC

Accessibility & contrast

On white

5.57
#8940D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8940D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940D6
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940D6#FFFFFF#000000##FFFFFF
##8940D61.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#796487
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8940d6;
/* rgb */ color: rgb(137, 64, 214);
/* oklch */ color: oklch(54.3% 0.218 301.7);
Tailwind
colors: {
  custom: {
    50: '#b17be4',
    500: '#8940d6',
    950: '#000000',
  },
}
SCSS
$custom: #8940d6;
$custom-light: #b17be4;
$custom-dark: #000000;
JSON
{
  "hex": "#8940d6",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 269.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.21757,
    "h": 301.7
  },
  "luminance": 0.1384
}

Semantic roles & 50–950 ramp

primary
#8940D6
secondary
#BAD999
accent
#E84096
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8940D6

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

Preview Lab → · Contrast checker → · Palette generator →

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