#8940C0#8940C0

#8940C0 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.194 H 307.1°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8940C0
RGBrgb(137, 64, 192)
HSLhsl(274, 50%, 50%)
HSVhsv(274, 67%, 75%)
CMYKcmyk(28.6%, 66.7%, 0%, 24.7%)
CIE-LABlab(42.45, 53.49, -54.74)
CIE-LCHlch(42.45, 76.54, 314.34°)
OKLaboklab(52.73% 0.1173 -0.155)
OKLCHoklch(52.73% 0.194 307.1)
XYZxyz(21.6623, 12.7912, 51.1867)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940C0 #77C040
analogous
#4940C0 #8940C0 #C040B7
triadic
#8940C0 #C08940 #40C089
tetradic
#8940C0 #C04940 #77C040 #40B7C0
square
#8940C0 #C04940 #77C040 #40B7C0
split-complementary
#8940C0 #B7C040 #40C049
monochromatic
#482164 #683092 #8940C0 #A56ECF #C29CDE

Accessibility & contrast

On white

5.90
#8940C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8940C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940C0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940C0#FFFFFF#000000##FFFFFF
##8940C01.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C4
Deuteranopia (green-blind)
#2265BD
Tritanopia (blue-blind)
#805C7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8940c0;
/* rgb */ color: rgb(137, 64, 192);
/* oklch */ color: oklch(52.7% 0.194 307.1);
Tailwind
colors: {
  custom: {
    50: '#b07ad4',
    500: '#8940c0',
    950: '#000000',
  },
}
SCSS
$custom: #8940c0;
$custom-light: #b07ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8940c0",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 274.219,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52726,
    "c": 0.19444,
    "h": 307.1
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#8940C0
secondary
#AACB91
accent
#DA4E8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8940C0

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

Preview Lab → · Contrast checker → · Palette generator →

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