#8042C0#8042C0

#8042C0 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.190 H 302.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8042C0
RGBrgb(128, 66, 192)
HSLhsl(270, 50%, 51%)
HSVhsv(270, 66%, 75%)
CMYKcmyk(33.3%, 65.6%, 0%, 24.7%)
CIE-LABlab(41.68, 50.58, -56.04)
CIE-LCHlch(41.68, 75.49, 312.07°)
OKLaboklab(51.93% 0.103 -0.1592)
OKLCHoklch(51.93% 0.19 302.9)
XYZxyz(20.3625, 12.2914, 51.1587)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C0 #82C042
analogous
#4243C0 #8042C0 #BF42C0
triadic
#8042C0 #C08042 #42C080
tetradic
#8042C0 #C04243 #82C042 #42C0BF
square
#8042C0 #C04243 #82C042 #42C0BF
split-complementary
#8042C0 #C0BF42 #43C042
monochromatic
#432266 #623194 #8042C0 #9F70CF #BE9EDF

Accessibility & contrast

On white

6.07
#8042C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8042C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C0
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C0#FFFFFF#000000##FFFFFF
##8042C01.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#1262BD
Tritanopia (blue-blind)
#735E7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8042c0;
/* rgb */ color: rgb(128, 66, 192);
/* oklch */ color: oklch(51.9% 0.190 302.9);
Tailwind
colors: {
  custom: {
    50: '#a97ad4',
    500: '#8042c0',
    950: '#000000',
  },
}
SCSS
$custom: #8042c0;
$custom-light: #a97ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c0",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 269.524,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51926,
    "c": 0.18961,
    "h": 302.9
  },
  "luminance": 0.12291
}

Semantic roles & 50–950 ramp

primary
#8042C0
secondary
#AFCB93
accent
#DA4E95
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8042C0

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

Preview Lab → · Contrast checker → · Palette generator →

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