#8140C2#8140C2

#8140C2 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.195 H 303.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8140C2
RGBrgb(129, 64, 194)
HSLhsl(270, 52%, 51%)
HSVhsv(270, 67%, 76%)
CMYKcmyk(33.5%, 67%, 0%, 23.9%)
CIE-LABlab(41.58, 52.27, -57.36)
CIE-LCHlch(41.58, 77.60, 312.34°)
OKLaboklab(51.93% 0.1064 -0.163)
OKLCHoklch(51.93% 0.195 303.1)
XYZxyz(20.6220, 12.2290, 52.3025)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8140C2 #81C240
analogous
#4040C2 #8140C2 #C240C2
triadic
#8140C2 #C28140 #40C281
tetradic
#8140C2 #C24040 #81C240 #40C2C2
square
#8140C2 #C24040 #81C240 #40C2C2
split-complementary
#8140C2 #C2C240 #40C240
monochromatic
#442167 #623095 #8140C2 #A06ED1 #BE9DE0

Accessibility & contrast

On white

6.09
#8140C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8140C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8140C2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8140C2#FFFFFF#000000##FFFFFF
##8140C21.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0662BF
Tritanopia (blue-blind)
#745D7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8140c2;
/* rgb */ color: rgb(129, 64, 194);
/* oklch */ color: oklch(51.9% 0.195 303.1);
Tailwind
colors: {
  custom: {
    50: '#aa79d5',
    500: '#8140c2',
    950: '#000000',
  },
}
SCSS
$custom: #8140c2;
$custom-light: #aa79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8140c2",
  "rgb": {
    "r": 129,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 270,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51927,
    "c": 0.19465,
    "h": 303.1
  },
  "luminance": 0.12229
}

Semantic roles & 50–950 ramp

primary
#8140C2
secondary
#AFCC92
accent
#DB4D94
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8140C2

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

Preview Lab → · Contrast checker → · Palette generator →

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