#8042C7#8042C7

#8042C7 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.197 H 301.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8042C7
RGBrgb(128, 66, 199)
HSLhsl(268, 54%, 52%)
HSVhsv(268, 67%, 78%)
CMYKcmyk(35.7%, 66.8%, 0%, 22%)
CIE-LABlab(42.17, 52.30, -59.32)
CIE-LCHlch(42.17, 79.08, 311.40°)
OKLaboklab(52.44% 0.1023 -0.1688)
OKLCHoklch(52.44% 0.197 301.2)
XYZxyz(21.1566, 12.6090, 55.3409)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C7 #89C742
analogous
#4247C7 #8042C7 #C342C7
triadic
#8042C7 #C78042 #42C780
tetradic
#8042C7 #C74247 #89C742 #42C7C3
square
#8042C7 #C74247 #89C742 #42C7C3
split-complementary
#8042C7 #C7C342 #47C742
monochromatic
#45216E #622F9D #8042C7 #A071D5 #BFA0E3

Accessibility & contrast

On white

5.96
#8042C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8042C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C7#FFFFFF#000000##FFFFFF
##8042C71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#71607F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8042c7;
/* rgb */ color: rgb(128, 66, 199);
/* oklch */ color: oklch(52.4% 0.197 301.2);
Tailwind
colors: {
  custom: {
    50: '#aa7ad9',
    500: '#8042c7',
    950: '#000000',
  },
}
SCSS
$custom: #8042c7;
$custom-light: #aa7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c7",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 267.97,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52436,
    "c": 0.19737,
    "h": 301.2
  },
  "luminance": 0.12609
}

Semantic roles & 50–950 ramp

primary
#8042C7
secondary
#B4D095
accent
#DE4A99
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #8042C7

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

Preview Lab → · Contrast checker → · Palette generator →

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