#8042C5#8042C5

#8042C5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.195 H 301.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8042C5
RGBrgb(128, 66, 197)
HSLhsl(268, 53%, 52%)
HSVhsv(268, 66%, 77%)
CMYKcmyk(35%, 66.5%, 0%, 22.7%)
CIE-LABlab(42.03, 51.80, -58.39)
CIE-LCHlch(42.03, 78.06, 311.58°)
OKLaboklab(52.29% 0.1025 -0.1661)
OKLCHoklch(52.29% 0.195 301.7)
XYZxyz(20.9259, 12.5168, 54.1260)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C5 #87C542
analogous
#4246C5 #8042C5 #C242C5
triadic
#8042C5 #C58042 #42C580
tetradic
#8042C5 #C54246 #87C542 #42C5C2
square
#8042C5 #C54246 #87C542 #42C5C2
split-complementary
#8042C5 #C5C242 #46C542
monochromatic
#44216C #622F9A #8042C5 #9F71D3 #BFA0E2

Accessibility & contrast

On white

5.99
#8042C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8042C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042C5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C5#FFFFFF#000000##FFFFFF
##8042C51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#72607E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8042c5;
/* rgb */ color: rgb(128, 66, 197);
/* oklch */ color: oklch(52.3% 0.195 301.7);
Tailwind
colors: {
  custom: {
    50: '#aa7ad7',
    500: '#8042c5',
    950: '#000000',
  },
}
SCSS
$custom: #8042c5;
$custom-light: #aa7ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c5",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 268.397,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.19516,
    "h": 301.7
  },
  "luminance": 0.12517
}

Semantic roles & 50–950 ramp

primary
#8042C5
secondary
#B3CE95
accent
#DC4B98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8042C5

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

Preview Lab → · Contrast checker → · Palette generator →

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