#8940BA#8940BA

#8940BA is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.188 H 308.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8940BA
RGBrgb(137, 64, 186)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 73%)
CMYKcmyk(26.3%, 65.6%, 0%, 27.1%)
CIE-LABlab(42.05, 52.12, -51.88)
CIE-LCHlch(42.05, 73.54, 315.13°)
OKLaboklab(52.31% 0.1178 -0.1466)
OKLCHoklch(52.31% 0.188 308.8)
XYZxyz(21.0111, 12.5307, 47.7567)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BA #71BA40
analogous
#4C40BA #8940BA #BA40AE
triadic
#8940BA #BA8940 #40BA89
tetradic
#8940BA #BA4C40 #71BA40 #40AEBA
square
#8940BA #BA4C40 #71BA40 #40AEBA
split-complementary
#8940BA #AEBA40 #40BA4C
monochromatic
#46215F #67308C #8940BA #A56BCC #C199DC

Accessibility & contrast

On white

5.99
#8940BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8940BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940BA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BA#FFFFFF#000000##FFFFFF
##8940BA1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2B64B7
Tritanopia (blue-blind)
#825977
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8940ba;
/* rgb */ color: rgb(137, 64, 186);
/* oklch */ color: oklch(52.3% 0.188 308.8);
Tailwind
colors: {
  custom: {
    50: '#af7acf',
    500: '#8940ba',
    950: '#000000',
  },
}
SCSS
$custom: #8940ba;
$custom-light: #af7acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8940ba",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 275.902,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52312,
    "c": 0.18811,
    "h": 308.8
  },
  "luminance": 0.1253
}

Semantic roles & 50–950 ramp

primary
#8940BA
secondary
#A5C88E
accent
#D84F86
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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