#8042C8#8042C8

#8042C8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.198 H 301.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8042C8
RGBrgb(128, 66, 200)
HSLhsl(268, 55%, 52%)
HSVhsv(268, 67%, 78%)
CMYKcmyk(36%, 67%, 0%, 21.6%)
CIE-LABlab(42.24, 52.54, -59.78)
CIE-LCHlch(42.24, 79.59, 311.31°)
OKLaboklab(52.51% 0.1021 -0.1702)
OKLCHoklch(52.51% 0.198 301)
XYZxyz(21.2731, 12.6556, 55.9544)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C8 #8AC842
analogous
#4247C8 #8042C8 #C342C8
triadic
#8042C8 #C88042 #42C880
tetradic
#8042C8 #C84247 #8AC842 #42C8C3
square
#8042C8 #C84247 #8AC842 #42C8C3
split-complementary
#8042C8 #C8C342 #47C842
monochromatic
#45206F #622E9F #8042C8 #A071D6 #C0A1E4

Accessibility & contrast

On white

5.95
#8042C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8042C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C8#FFFFFF#000000##FFFFFF
##8042C81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#716180
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8042c8;
/* rgb */ color: rgb(128, 66, 200);
/* oklch */ color: oklch(52.5% 0.198 301.0);
Tailwind
colors: {
  custom: {
    50: '#aa7bda',
    500: '#8042c8',
    950: '#000000',
  },
}
SCSS
$custom: #8042c8;
$custom-light: #aa7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c8",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 267.761,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5251,
    "c": 0.19848,
    "h": 301
  },
  "luminance": 0.12656
}

Semantic roles & 50–950 ramp

primary
#8042C8
secondary
#B5D096
accent
#DE4A99
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042C8

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

Preview Lab → · Contrast checker → · Palette generator →

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