#8840C7#8840C7

#8840C7 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.202 H 304.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8840C7
RGBrgb(136, 64, 199)
HSLhsl(272, 55%, 52%)
HSVhsv(272, 68%, 78%)
CMYKcmyk(31.7%, 67.8%, 0%, 22%)
CIE-LABlab(42.80, 54.90, -58.25)
CIE-LCHlch(42.80, 80.05, 313.31°)
OKLaboklab(53.11% 0.1153 -0.1654)
OKLCHoklch(53.11% 0.202 304.9)
XYZxyz(22.2932, 13.0247, 55.3613)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840C7 #7FC740
analogous
#4540C7 #8840C7 #C740C3
triadic
#8840C7 #C78840 #40C788
tetradic
#8840C7 #C74540 #7FC740 #40C3C7
square
#8840C7 #C74540 #7FC740 #40C3C7
split-complementary
#8840C7 #C3C740 #40C745
monochromatic
#49206D #692E9C #8840C7 #A56FD5 #C39FE3

Accessibility & contrast

On white

5.83
#8840C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8840C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840C7
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840C7#FFFFFF#000000##FFFFFF
##8840C71.005.833.615.83
#FFFFFF5.831.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0E65C4
Tritanopia (blue-blind)
#7C5E7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8840c7;
/* rgb */ color: rgb(136, 64, 199);
/* oklch */ color: oklch(53.1% 0.202 304.9);
Tailwind
colors: {
  custom: {
    50: '#af7ad9',
    500: '#8840c7',
    950: '#000000',
  },
}
SCSS
$custom: #8840c7;
$custom-light: #af7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8840c7",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 272,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53105,
    "c": 0.20158,
    "h": 304.9
  },
  "luminance": 0.13025
}

Semantic roles & 50–950 ramp

primary
#8840C7
secondary
#AFCF94
accent
#DE4A8F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8840C7

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

Preview Lab → · Contrast checker → · Palette generator →

#8840C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva