#8940C8#8940C8

#8940C8 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.3% C 0.203 H 305.0°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8940C8
RGBrgb(137, 64, 200)
HSLhsl(272, 55%, 52%)
HSVhsv(272, 68%, 78%)
CMYKcmyk(31.5%, 68%, 0%, 21.6%)
CIE-LABlab(43.00, 55.34, -58.51)
CIE-LCHlch(43.00, 80.53, 313.41°)
OKLaboklab(53.29% 0.1165 -0.1661)
OKLCHoklch(53.29% 0.203 305)
XYZxyz(22.5729, 13.1554, 55.9825)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940C8 #7FC840
analogous
#4540C8 #8940C8 #C840C3
triadic
#8940C8 #C88940 #40C889
tetradic
#8940C8 #C84540 #7FC840 #40C3C8
square
#8940C8 #C84540 #7FC840 #40C3C8
split-complementary
#8940C8 #C3C840 #40C845
monochromatic
#4A206E #6A2D9D #8940C8 #A670D6 #C49FE3

Accessibility & contrast

On white

5.78
#8940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8940C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940C8
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940C8#FFFFFF#000000##FFFFFF
##8940C81.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0E66C5
Tritanopia (blue-blind)
#7E5F7F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8940c8;
/* rgb */ color: rgb(137, 64, 200);
/* oklch */ color: oklch(53.3% 0.203 305.0);
Tailwind
colors: {
  custom: {
    50: '#b07ad9',
    500: '#8940c8',
    950: '#000000',
  },
}
SCSS
$custom: #8940c8;
$custom-light: #b07ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8940c8",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 272.206,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53294,
    "c": 0.20287,
    "h": 305
  },
  "luminance": 0.13155
}

Semantic roles & 50–950 ramp

primary
#8940C8
secondary
#B0D094
accent
#DF498E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940C8

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

Preview Lab → · Contrast checker → · Palette generator →

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