#8040C0#8040C0

#8040C0 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.192 H 303.2°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8040C0
RGBrgb(128, 64, 192)
HSLhsl(270, 50%, 50%)
HSVhsv(270, 67%, 75%)
CMYKcmyk(33.3%, 66.7%, 0%, 24.7%)
CIE-LABlab(41.31, 51.57, -56.63)
CIE-LCHlch(41.31, 76.59, 312.33°)
OKLaboklab(51.67% 0.1053 -0.1609)
OKLCHoklch(51.67% 0.192 303.2)
XYZxyz(20.2477, 12.0618, 51.1204)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040C0 #80C040
analogous
#4040C0 #8040C0 #C040C0
triadic
#8040C0 #C08040 #40C080
tetradic
#8040C0 #C04040 #80C040 #40C0C0
square
#8040C0 #C04040 #80C040 #40C0C0
split-complementary
#8040C0 #C0C040 #40C040
monochromatic
#432164 #613092 #8040C0 #9F6ECF #BD9CDE

Accessibility & contrast

On white

6.15
#8040C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8040C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040C0
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040C0#FFFFFF#000000##FFFFFF
##8040C01.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0B61BD
Tritanopia (blue-blind)
#735D7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8040c0;
/* rgb */ color: rgb(128, 64, 192);
/* oklch */ color: oklch(51.7% 0.192 303.2);
Tailwind
colors: {
  custom: {
    50: '#aa79d4',
    500: '#8040c0',
    950: '#000000',
  },
}
SCSS
$custom: #8040c0;
$custom-light: #aa79d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8040c0",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 270,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51667,
    "c": 0.19226,
    "h": 303.2
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#8040C0
secondary
#AECB91
accent
#DA4E94
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8040C0

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

Preview Lab → · Contrast checker → · Palette generator →

#8040C0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva