#8940B4#8940B4

#8940B4 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.182 H 310.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8940B4
RGBrgb(137, 64, 180)
HSLhsl(278, 48%, 48%)
HSVhsv(278, 64%, 71%)
CMYKcmyk(23.9%, 64.4%, 0%, 29.4%)
CIE-LABlab(41.66, 50.77, -48.97)
CIE-LCHlch(41.66, 70.54, 316.03°)
OKLaboklab(51.91% 0.1182 -0.1381)
OKLCHoklch(51.91% 0.182 310.6)
XYZxyz(20.3866, 12.2809, 44.4677)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940B4 #6BB440
analogous
#4F40B4 #8940B4 #B440A5
triadic
#8940B4 #B48940 #40B489
tetradic
#8940B4 #B44F40 #6BB440 #40A5B4
square
#8940B4 #B44F40 #6BB440 #40A5B4
split-complementary
#8940B4 #A5B440 #40B44F
monochromatic
#44205A #673087 #8940B4 #A568C9 #C095D9

Accessibility & contrast

On white

6.08
#8940B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8940B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940B4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940B4#FFFFFF#000000##FFFFFF
##8940B41.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#3264B1
Tritanopia (blue-blind)
#835774
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8940b4;
/* rgb */ color: rgb(137, 64, 180);
/* oklch */ color: oklch(51.9% 0.182 310.6);
Tailwind
colors: {
  custom: {
    50: '#af79cb',
    500: '#8940b4',
    950: '#000000',
  },
}
SCSS
$custom: #8940b4;
$custom-light: #af79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8940b4",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 277.759,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51908,
    "c": 0.18179,
    "h": 310.6
  },
  "luminance": 0.1228
}

Semantic roles & 50–950 ramp

primary
#8940B4
secondary
#A0C58B
accent
#D75183
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8940B4

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

Preview Lab → · Contrast checker → · Palette generator →

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