#8940C2#8940C2

#8940C2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.9% C 0.197 H 306.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8940C2
RGBrgb(137, 64, 194)
HSLhsl(274, 52%, 51%)
HSVhsv(274, 67%, 76%)
CMYKcmyk(29.4%, 67%, 0%, 23.9%)
CIE-LABlab(42.58, 53.95, -55.69)
CIE-LCHlch(42.58, 77.54, 314.09°)
OKLaboklab(52.87% 0.1171 -0.1578)
OKLCHoklch(52.87% 0.197 306.6)
XYZxyz(21.8854, 12.8804, 52.3617)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940C2 #79C240
analogous
#4840C2 #8940C2 #C240BA
triadic
#8940C2 #C28940 #40C289
tetradic
#8940C2 #C24840 #79C240 #40BAC2
square
#8940C2 #C24840 #79C240 #40BAC2
split-complementary
#8940C2 #BAC240 #40C248
monochromatic
#482167 #693095 #8940C2 #A66ED1 #C29DE0

Accessibility & contrast

On white

5.87
#8940C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8940C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940C2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940C2#FFFFFF#000000##FFFFFF
##8940C21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#1E65BF
Tritanopia (blue-blind)
#7F5C7C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8940c2;
/* rgb */ color: rgb(137, 64, 194);
/* oklch */ color: oklch(52.9% 0.197 306.6);
Tailwind
colors: {
  custom: {
    50: '#b07ad5',
    500: '#8940c2',
    950: '#000000',
  },
}
SCSS
$custom: #8940c2;
$custom-light: #b07ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8940c2",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 273.692,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52867,
    "c": 0.19655,
    "h": 306.6
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#8940C2
secondary
#ABCC92
accent
#DB4D8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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