#8940B2#8940B2

#8940B2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.180 H 311.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8940B2
RGBrgb(137, 64, 178)
HSLhsl(278, 47%, 47%)
HSVhsv(278, 64%, 70%)
CMYKcmyk(23%, 64%, 0%, 30.2%)
CIE-LABlab(41.53, 50.32, -48.00)
CIE-LCHlch(41.53, 69.54, 316.35°)
OKLaboklab(51.78% 0.1183 -0.1352)
OKLCHoklch(51.78% 0.18 311.2)
XYZxyz(20.1843, 12.2000, 43.4024)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940B2 #69B240
analogous
#5040B2 #8940B2 #B240A2
triadic
#8940B2 #B28940 #40B289
tetradic
#8940B2 #B25040 #69B240 #40A2B2
square
#8940B2 #B25040 #69B240 #40A2B2
split-complementary
#8940B2 #A2B240 #40B250
monochromatic
#442058 #663085 #8940B2 #A567C8 #C094D8

Accessibility & contrast

On white

6.10
#8940B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8940B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940B2
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940B2#FFFFFF#000000##FFFFFF
##8940B21.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035EB5
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#845673
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8940b2;
/* rgb */ color: rgb(137, 64, 178);
/* oklch */ color: oklch(51.8% 0.180 311.2);
Tailwind
colors: {
  custom: {
    50: '#af79ca',
    500: '#8940b2',
    950: '#000000',
  },
}
SCSS
$custom: #8940b2;
$custom-light: #af79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8940b2",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 278.421,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51776,
    "c": 0.17969,
    "h": 311.2
  },
  "luminance": 0.122
}

Semantic roles & 50–950 ramp

primary
#8940B2
secondary
#9FC48A
accent
#D75181
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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