#8940BB#8940BB

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

Color values

HEX#8940BB
RGBrgb(137, 64, 187)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 66%, 73%)
CMYKcmyk(26.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(42.11, 52.35, -52.36)
CIE-LCHlch(42.11, 74.04, 315.00°)
OKLaboklab(52.38% 0.1178 -0.148)
OKLCHoklch(52.38% 0.189 308.5)
XYZxyz(21.1177, 12.5733, 48.3185)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940BB #72BB40
analogous
#4C40BB #8940BB #BB40B0
triadic
#8940BB #BB8940 #40BB89
tetradic
#8940BB #BB4C40 #72BB40 #40B0BB
square
#8940BB #BB4C40 #72BB40 #40B0BB
split-complementary
#8940BB #B0BB40 #40BB4C
monochromatic
#462160 #68308D #8940BB #A56CCD #C199DC

Accessibility & contrast

On white

5.98
#8940BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8940BB
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940BB#FFFFFF#000000##FFFFFF
##8940BB1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#2A64B8
Tritanopia (blue-blind)
#815A78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8940bb;
/* rgb */ color: rgb(137, 64, 187);
/* oklch */ color: oklch(52.4% 0.189 308.5);
Tailwind
colors: {
  custom: {
    50: '#af7ad0',
    500: '#8940bb',
    950: '#000000',
  },
}
SCSS
$custom: #8940bb;
$custom-light: #af7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8940bb",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 275.61,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5238,
    "c": 0.18917,
    "h": 308.5
  },
  "luminance": 0.12573
}

Semantic roles & 50–950 ramp

primary
#8940BB
secondary
#A6C88F
accent
#D94F87
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8940BB

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

Preview Lab → · Contrast checker → · Palette generator →

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