#8940BC#8940BC

#8940BC is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.190 H 308.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8940BC
RGBrgb(137, 64, 188)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 74%)
CMYKcmyk(27.1%, 66%, 0%, 26.3%)
CIE-LABlab(42.18, 52.58, -52.83)
CIE-LCHlch(42.18, 74.54, 314.86°)
OKLaboklab(52.45% 0.1177 -0.1494)
OKLCHoklch(52.45% 0.19 308.2)
XYZxyz(21.2252, 12.6163, 48.8843)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BC #73BC40
analogous
#4B40BC #8940BC #BC40B1
triadic
#8940BC #BC8940 #40BC89
tetradic
#8940BC #BC4B40 #73BC40 #40B1BC
square
#8940BC #BC4B40 #73BC40 #40B1BC
split-complementary
#8940BC #B1BC40 #40BC4B
monochromatic
#462161 #68308E #8940BC #A56CCD #C19ADD

Accessibility & contrast

On white

5.96
#8940BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8940BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940BC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BC#FFFFFF#000000##FFFFFF
##8940BC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#2864B9
Tritanopia (blue-blind)
#815A78
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8940bc;
/* rgb */ color: rgb(137, 64, 188);
/* oklch */ color: oklch(52.4% 0.190 308.2);
Tailwind
colors: {
  custom: {
    50: '#af7ad1',
    500: '#8940bc',
    950: '#000000',
  },
}
SCSS
$custom: #8940bc;
$custom-light: #af7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8940bc",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 275.323,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52449,
    "c": 0.19023,
    "h": 308.2
  },
  "luminance": 0.12616
}

Semantic roles & 50–950 ramp

primary
#8940BC
secondary
#A7C98F
accent
#D94F88
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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