#8042C4#8042C4

#8042C4 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.194 H 301.9°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8042C4
RGBrgb(128, 66, 196)
HSLhsl(269, 52%, 51%)
HSVhsv(269, 66%, 77%)
CMYKcmyk(34.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(41.96, 51.56, -57.92)
CIE-LCHlch(41.96, 77.54, 311.67°)
OKLaboklab(52.22% 0.1026 -0.1647)
OKLCHoklch(52.22% 0.194 301.9)
XYZxyz(20.8117, 12.4711, 53.5246)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C4 #86C442
analogous
#4245C4 #8042C4 #C142C4
triadic
#8042C4 #C48042 #42C480
tetradic
#8042C4 #C44245 #86C442 #42C4C1
square
#8042C4 #C44245 #86C442 #42C4C1
split-complementary
#8042C4 #C4C142 #45C442
monochromatic
#44216A #623099 #8042C4 #9F71D3 #BF9FE1

Accessibility & contrast

On white

6.01
#8042C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8042C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C4#FFFFFF#000000##FFFFFF
##8042C41.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0162C1
Tritanopia (blue-blind)
#725F7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8042c4;
/* rgb */ color: rgb(128, 66, 196);
/* oklch */ color: oklch(52.2% 0.194 301.9);
Tailwind
colors: {
  custom: {
    50: '#aa7ad7',
    500: '#8042c4',
    950: '#000000',
  },
}
SCSS
$custom: #8042c4;
$custom-light: #aa7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c4",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 268.615,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52216,
    "c": 0.19405,
    "h": 301.9
  },
  "luminance": 0.12471
}

Semantic roles & 50–950 ramp

primary
#8042C4
secondary
#B2CE94
accent
#DC4C97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8042C4

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

Preview Lab → · Contrast checker → · Palette generator →

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