#8C4CAF#8C4CAF

#8C4CAF is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.160 H 312.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8C4CAF
RGBrgb(140, 76, 175)
HSLhsl(279, 39%, 49%)
HSVhsv(279, 57%, 69%)
CMYKcmyk(20%, 56.6%, 0%, 31.4%)
CIE-LABlab(44.00, 44.29, -42.26)
CIE-LCHlch(44.00, 61.22, 316.34°)
OKLaboklab(53.6% 0.1069 -0.1184)
OKLCHoklch(53.6% 0.16 312.1)
XYZxyz(21.1361, 13.8400, 42.1071)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C4CAF #6FAF4C
analogous
#5B4CAF #8C4CAF #AF4CA1
triadic
#8C4CAF #AF8C4C #4CAF8C
tetradic
#8C4CAF #AF5B4C #6FAF4C #4CA1AF
square
#8C4CAF #AF5B4C #6FAF4C #4CA1AF
split-complementary
#8C4CAF #A1AF4C #4CAF5B
monochromatic
#48275A #6A3984 #8C4CAF #A875C3 #C3A0D6

Accessibility & contrast

On white

5.57
#8C4CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8C4CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C4CAF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C4CAF#FFFFFF#000000##FFFFFF
##8C4CAF1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F65B2
Deuteranopia (green-blind)
#4669AD
Tritanopia (blue-blind)
#885D76
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8c4caf;
/* rgb */ color: rgb(140, 76, 175);
/* oklch */ color: oklch(53.6% 0.160 312.1);
Tailwind
colors: {
  custom: {
    50: '#b081c7',
    500: '#8c4caf',
    950: '#000000',
  },
}
SCSS
$custom: #8c4caf;
$custom-light: #b081c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c4caf",
  "rgb": {
    "r": 140,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 278.788,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.536,
    "c": 0.15951,
    "h": 312.1
  },
  "luminance": 0.13839
}

Semantic roles & 50–950 ramp

primary
#8C4CAF
secondary
#A5C294
accent
#CF5882
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8C4CAF

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

Preview Lab → · Contrast checker → · Palette generator →

#8C4CAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva