#8940C9#8940C9

#8940C9 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.204 H 304.8°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8940C9
RGBrgb(137, 64, 201)
HSLhsl(272, 56%, 52%)
HSVhsv(272, 68%, 79%)
CMYKcmyk(31.8%, 68.2%, 0%, 21.2%)
CIE-LABlab(43.07, 55.58, -58.97)
CIE-LCHlch(43.07, 81.03, 313.30°)
OKLaboklab(53.37% 0.1163 -0.1675)
OKLCHoklch(53.37% 0.204 304.8)
XYZxyz(22.6902, 13.2023, 56.6000)
Luminance0.1320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940C9 #80C940
analogous
#4540C9 #8940C9 #C940C4
triadic
#8940C9 #C98940 #40C989
tetradic
#8940C9 #C94540 #80C940 #40C4C9
square
#8940C9 #C94540 #80C940 #40C4C9
split-complementary
#8940C9 #C4C940 #40C945
monochromatic
#4A1F6F #6A2D9F #8940C9 #A670D6 #C49FE4

Accessibility & contrast

On white

5.77
#8940C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8940C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940C9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940C9#FFFFFF#000000##FFFFFF
##8940C91.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#0966C6
Tritanopia (blue-blind)
#7D5F80
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8940c9;
/* rgb */ color: rgb(137, 64, 201);
/* oklch */ color: oklch(53.4% 0.204 304.8);
Tailwind
colors: {
  custom: {
    50: '#b07ada',
    500: '#8940c9',
    950: '#000000',
  },
}
SCSS
$custom: #8940c9;
$custom-light: #b07ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8940c9",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 271.971,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53367,
    "c": 0.20392,
    "h": 304.8
  },
  "luminance": 0.13202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8940C9

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

Preview Lab → · Contrast checker → · Palette generator →

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