#8940B9#8940B9

#8940B9 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.187 H 309.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8940B9
RGBrgb(137, 64, 185)
HSLhsl(276, 49%, 49%)
HSVhsv(276, 65%, 73%)
CMYKcmyk(25.9%, 65.4%, 0%, 27.5%)
CIE-LABlab(41.98, 51.89, -51.39)
CIE-LCHlch(41.98, 73.04, 315.28°)
OKLaboklab(52.24% 0.1179 -0.1452)
OKLCHoklch(52.24% 0.187 309.1)
XYZxyz(20.9051, 12.4883, 47.1987)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940B9 #70B940
analogous
#4D40B9 #8940B9 #B940AD
triadic
#8940B9 #B98940 #40B989
tetradic
#8940B9 #B94D40 #70B940 #40ADB9
square
#8940B9 #B94D40 #70B940 #40ADB9
split-complementary
#8940B9 #ADB940 #40B94D
monochromatic
#46215E #67308C #8940B9 #A56BCC #C198DB

Accessibility & contrast

On white

6.00
#8940B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8940B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940B9
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940B9#FFFFFF#000000##FFFFFF
##8940B91.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8940b9;
/* rgb */ color: rgb(137, 64, 185);
/* oklch */ color: oklch(52.2% 0.187 309.1);
Tailwind
colors: {
  custom: {
    50: '#af7acf',
    500: '#8940b9',
    950: '#000000',
  },
}
SCSS
$custom: #8940b9;
$custom-light: #af7acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8940b9",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 276.198,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52244,
    "c": 0.18706,
    "h": 309.1
  },
  "luminance": 0.12488
}

Semantic roles & 50–950 ramp

primary
#8940B9
secondary
#A4C78E
accent
#D85086
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8940B9

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

Preview Lab → · Contrast checker → · Palette generator →

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