#8940CB#8940CB

#8940CB is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.206 H 304.3°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8940CB
RGBrgb(137, 64, 203)
HSLhsl(272, 57%, 52%)
HSVhsv(272, 68%, 80%)
CMYKcmyk(32.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.21, 56.04, -59.90)
CIE-LCHlch(43.21, 82.03, 313.09°)
OKLaboklab(53.51% 0.1161 -0.1702)
OKLCHoklch(53.51% 0.206 304.3)
XYZxyz(22.9270, 13.2970, 57.8471)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940CB #82CB40
analogous
#4440CB #8940CB #CB40C7
triadic
#8940CB #CB8940 #40CB89
tetradic
#8940CB #CB4440 #82CB40 #40C7CB
square
#8940CB #CB4440 #82CB40 #40C7CB
split-complementary
#8940CB #C7CB40 #40CB44
monochromatic
#4A1F72 #6A2CA2 #8940CB #A770D8 #C4A0E5

Accessibility & contrast

On white

5.74
#8940CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8940CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940CB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940CB#FFFFFF#000000##FFFFFF
##8940CB1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#7D6081
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8940cb;
/* rgb */ color: rgb(137, 64, 203);
/* oklch */ color: oklch(53.5% 0.206 304.3);
Tailwind
colors: {
  custom: {
    50: '#b07adc',
    500: '#8940cb',
    950: '#000000',
  },
}
SCSS
$custom: #8940cb;
$custom-light: #b07adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8940cb",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 271.511,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53512,
    "c": 0.20603,
    "h": 304.3
  },
  "luminance": 0.13297
}

Semantic roles & 50–950 ramp

primary
#8940CB
secondary
#B2D295
accent
#E04790
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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