#8940BF#8940BF

#8940BF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.193 H 307.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8940BF
RGBrgb(137, 64, 191)
HSLhsl(274, 50%, 50%)
HSVhsv(274, 66%, 75%)
CMYKcmyk(28.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.38, 53.26, -54.27)
CIE-LCHlch(42.38, 76.04, 314.46°)
OKLaboklab(52.66% 0.1174 -0.1536)
OKLCHoklch(52.66% 0.193 307.4)
XYZxyz(21.5519, 12.7470, 50.6052)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BF #76BF40
analogous
#4940BF #8940BF #BF40B6
triadic
#8940BF #BF8940 #40BF89
tetradic
#8940BF #BF4940 #76BF40 #40B6BF
square
#8940BF #BF4940 #76BF40 #40B6BF
split-complementary
#8940BF #B6BF40 #40BF49
monochromatic
#472163 #683191 #8940BF #A56ECE #C29CDE

Accessibility & contrast

On white

5.92
#8940BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8940BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940BF
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BF#FFFFFF#000000##FFFFFF
##8940BF1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#2465BC
Tritanopia (blue-blind)
#805B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8940bf;
/* rgb */ color: rgb(137, 64, 191);
/* oklch */ color: oklch(52.7% 0.193 307.4);
Tailwind
colors: {
  custom: {
    50: '#b07ad3',
    500: '#8940bf',
    950: '#000000',
  },
}
SCSS
$custom: #8940bf;
$custom-light: #b07ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8940bf",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 274.488,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.52657,
    "c": 0.19339,
    "h": 307.4
  },
  "luminance": 0.12747
}

Semantic roles & 50–950 ramp

primary
#8940BF
secondary
#A9CA91
accent
#D94E8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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