#8042C3#8042C3

#8042C3 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.193 H 302.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8042C3
RGBrgb(128, 66, 195)
HSLhsl(269, 52%, 51%)
HSVhsv(269, 66%, 76%)
CMYKcmyk(34.4%, 66.2%, 0%, 23.5%)
CIE-LABlab(41.88, 51.31, -57.45)
CIE-LCHlch(41.88, 77.03, 311.77°)
OKLaboklab(52.14% 0.1027 -0.1633)
OKLCHoklch(52.14% 0.193 302.2)
XYZxyz(20.6983, 12.4257, 52.9271)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042C3 #85C342
analogous
#4244C3 #8042C3 #C042C3
triadic
#8042C3 #C38042 #42C380
tetradic
#8042C3 #C34244 #85C342 #42C3C0
square
#8042C3 #C34244 #85C342 #42C3C0
split-complementary
#8042C3 #C3C042 #44C342
monochromatic
#442169 #623098 #8042C3 #9F70D2 #BE9FE0

Accessibility & contrast

On white

6.03
#8042C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8042C3
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042C3#FFFFFF#000000##FFFFFF
##8042C31.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0662C0
Tritanopia (blue-blind)
#725F7D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8042c3;
/* rgb */ color: rgb(128, 66, 195);
/* oklch */ color: oklch(52.1% 0.193 302.2);
Tailwind
colors: {
  custom: {
    50: '#aa7ad6',
    500: '#8042c3',
    950: '#000000',
  },
}
SCSS
$custom: #8042c3;
$custom-light: #aa7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#8042c3",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 268.837,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52143,
    "c": 0.19295,
    "h": 302.2
  },
  "luminance": 0.12426
}

Semantic roles & 50–950 ramp

primary
#8042C3
secondary
#B2CD94
accent
#DB4D97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8042C3

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

Preview Lab → · Contrast checker → · Palette generator →

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