#8140C6#8140C6

#8140C6 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.199 H 302.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8140C6
RGBrgb(129, 64, 198)
HSLhsl(269, 54%, 51%)
HSVhsv(269, 68%, 78%)
CMYKcmyk(34.8%, 67.7%, 0%, 22.4%)
CIE-LABlab(41.86, 53.24, -59.23)
CIE-LCHlch(41.86, 79.64, 311.95°)
OKLaboklab(52.22% 0.1059 -0.1685)
OKLCHoklch(52.22% 0.199 302.1)
XYZxyz(21.0773, 12.4111, 54.7003)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8140C6 #85C640
analogous
#4042C6 #8140C6 #C440C6
triadic
#8140C6 #C68140 #40C681
tetradic
#8140C6 #C64042 #85C640 #40C6C4
square
#8140C6 #C64042 #85C640 #40C6C4
split-complementary
#8140C6 #C6C440 #42C640
monochromatic
#45206C #632E9B #8140C6 #A06FD4 #BF9EE2

Accessibility & contrast

On white

6.03
#8140C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8140C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8140C6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8140C6#FFFFFF#000000##FFFFFF
##8140C61.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#735F7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8140c6;
/* rgb */ color: rgb(129, 64, 198);
/* oklch */ color: oklch(52.2% 0.199 302.1);
Tailwind
colors: {
  custom: {
    50: '#ab79d8',
    500: '#8140c6',
    950: '#000000',
  },
}
SCSS
$custom: #8140c6;
$custom-light: #ab79d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8140c6",
  "rgb": {
    "r": 129,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 269.104,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52221,
    "c": 0.19901,
    "h": 302.1
  },
  "luminance": 0.12411
}

Semantic roles & 50–950 ramp

primary
#8140C6
secondary
#B2CE93
accent
#DD4A96
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8140C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8140C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva