#8940BD#8940BD

#8940BD is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.191 H 307.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8940BD
RGBrgb(137, 64, 189)
HSLhsl(275, 49%, 50%)
HSVhsv(275, 66%, 74%)
CMYKcmyk(27.5%, 66.1%, 0%, 25.9%)
CIE-LABlab(42.25, 52.80, -53.31)
CIE-LCHlch(42.25, 75.04, 314.72°)
OKLaboklab(52.52% 0.1176 -0.1509)
OKLCHoklch(52.52% 0.191 307.9)
XYZxyz(21.3333, 12.6596, 49.4539)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BD #74BD40
analogous
#4B40BD #8940BD #BD40B3
triadic
#8940BD #BD8940 #40BD89
tetradic
#8940BD #BD4B40 #74BD40 #40B3BD
square
#8940BD #BD4B40 #74BD40 #40B3BD
split-complementary
#8940BD #B3BD40 #40BD4B
monochromatic
#472162 #68318F #8940BD #A56DCD #C19ADD

Accessibility & contrast

On white

5.95
#8940BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8940BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940BD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BD#FFFFFF#000000##FFFFFF
##8940BD1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2764BA
Tritanopia (blue-blind)
#815A79
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8940bd;
/* rgb */ color: rgb(137, 64, 189);
/* oklch */ color: oklch(52.5% 0.191 307.9);
Tailwind
colors: {
  custom: {
    50: '#af7ad2',
    500: '#8940bd',
    950: '#000000',
  },
}
SCSS
$custom: #8940bd;
$custom-light: #af7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8940bd",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 275.04,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52518,
    "c": 0.19128,
    "h": 307.9
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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