#8042CE#8042CE

#8042CE is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.205 H 299.6°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8042CE
RGBrgb(128, 66, 206)
HSLhsl(267, 59%, 53%)
HSVhsv(267, 68%, 81%)
CMYKcmyk(37.9%, 68%, 0%, 19.2%)
CIE-LABlab(42.68, 54.03, -62.55)
CIE-LCHlch(42.68, 82.65, 310.82°)
OKLaboklab(52.96% 0.1013 -0.1783)
OKLCHoklch(52.96% 0.205 299.6)
XYZxyz(21.9881, 12.9416, 59.7201)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042CE #90CE42
analogous
#424ACE #8042CE #C642CE
triadic
#8042CE #CE8042 #42CE80
tetradic
#8042CE #CE424A #90CE42 #42CEC6
square
#8042CE #CE424A #90CE42 #42CEC6
split-complementary
#8042CE #CEC642 #4ACE42
monochromatic
#461F77 #622BA7 #8042CE #A173DB #C1A3E7

Accessibility & contrast

On white

5.85
#8042CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8042CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042CE
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042CE#FFFFFF#000000##FFFFFF
##8042CE1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0064CB
Tritanopia (blue-blind)
#6E6383
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8042ce;
/* rgb */ color: rgb(128, 66, 206);
/* oklch */ color: oklch(53.0% 0.205 299.6);
Tailwind
colors: {
  custom: {
    50: '#ab7bde',
    500: '#8042ce',
    950: '#000000',
  },
}
SCSS
$custom: #8042ce;
$custom-light: #ab7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#8042ce",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 266.571,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.2051,
    "h": 299.6
  },
  "luminance": 0.12942
}

Semantic roles & 50–950 ramp

primary
#8042CE
secondary
#B9D498
accent
#E2469D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042CE

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

Preview Lab → · Contrast checker → · Palette generator →

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