#8940B5#8940B5

#8940B5 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.183 H 310.3°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8940B5
RGBrgb(137, 64, 181)
HSLhsl(277, 48%, 48%)
HSVhsv(277, 65%, 71%)
CMYKcmyk(24.3%, 64.6%, 0%, 29%)
CIE-LABlab(41.72, 50.99, -49.46)
CIE-LCHlch(41.72, 71.04, 315.87°)
OKLaboklab(51.98% 0.1182 -0.1395)
OKLCHoklch(51.98% 0.183 310.3)
XYZxyz(20.4888, 12.3218, 45.0061)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940B5 #6CB540
analogous
#4E40B5 #8940B5 #B540A6
triadic
#8940B5 #B58940 #40B589
tetradic
#8940B5 #B54E40 #6CB540 #40A6B5
square
#8940B5 #B54E40 #6CB540 #40A6B5
split-complementary
#8940B5 #A6B540 #40B54E
monochromatic
#45205B #673088 #8940B5 #A568CA #C096DA

Accessibility & contrast

On white

6.06
#8940B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8940B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940B5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940B5#FFFFFF#000000##FFFFFF
##8940B51.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3164B2
Tritanopia (blue-blind)
#835775
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8940b5;
/* rgb */ color: rgb(137, 64, 181);
/* oklch */ color: oklch(52.0% 0.183 310.3);
Tailwind
colors: {
  custom: {
    50: '#af79cc',
    500: '#8940b5',
    950: '#000000',
  },
}
SCSS
$custom: #8940b5;
$custom-light: #af79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8940b5",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 277.436,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51975,
    "c": 0.18285,
    "h": 310.3
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#8940B5
secondary
#A1C58B
accent
#D75083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8940B5

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

Preview Lab → · Contrast checker → · Palette generator →

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