#8940BE#8940BE

#8940BE is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.192 H 307.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8940BE
RGBrgb(137, 64, 190)
HSLhsl(275, 50%, 50%)
HSVhsv(275, 66%, 75%)
CMYKcmyk(27.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.31, 53.03, -53.79)
CIE-LCHlch(42.31, 75.54, 314.59°)
OKLaboklab(52.59% 0.1175 -0.1522)
OKLCHoklch(52.59% 0.192 307.7)
XYZxyz(21.4423, 12.7032, 50.0276)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BE #75BE40
analogous
#4A40BE #8940BE #BE40B4
triadic
#8940BE #BE8940 #40BE89
tetradic
#8940BE #BE4A40 #75BE40 #40B4BE
square
#8940BE #BE4A40 #75BE40 #40B4BE
split-complementary
#8940BE #B4BE40 #40BE4A
monochromatic
#472162 #683190 #8940BE #A56DCE #C19BDD

Accessibility & contrast

On white

5.93
#8940BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8940BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940BE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BE#FFFFFF#000000##FFFFFF
##8940BE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#2565BB
Tritanopia (blue-blind)
#815B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8940be;
/* rgb */ color: rgb(137, 64, 190);
/* oklch */ color: oklch(52.6% 0.192 307.7);
Tailwind
colors: {
  custom: {
    50: '#b07ad2',
    500: '#8940be',
    950: '#000000',
  },
}
SCSS
$custom: #8940be;
$custom-light: #b07ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8940be",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 274.762,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52587,
    "c": 0.19233,
    "h": 307.7
  },
  "luminance": 0.12703
}

Semantic roles & 50–950 ramp

primary
#8940BE
secondary
#A8C990
accent
#D94F89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8940BE

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

Preview Lab → · Contrast checker → · Palette generator →

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