#8042CD#8042CD

#8042CD is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.204 H 299.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8042CD
RGBrgb(128, 66, 205)
HSLhsl(267, 58%, 53%)
HSVhsv(267, 68%, 80%)
CMYKcmyk(37.6%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.60, 53.78, -62.09)
CIE-LCHlch(42.60, 82.14, 310.90°)
OKLaboklab(52.88% 0.1015 -0.177)
OKLCHoklch(52.88% 0.204 299.8)
XYZxyz(21.8670, 12.8932, 59.0823)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042CD #8FCD42
analogous
#4249CD #8042CD #C642CD
triadic
#8042CD #CD8042 #42CD80
tetradic
#8042CD #CD4249 #8FCD42 #42CDC6
square
#8042CD #CD4249 #8FCD42 #42CDC6
split-complementary
#8042CD #CDC642 #49CD42
monochromatic
#461F76 #622CA6 #8042CD #A172DA #C1A3E7

Accessibility & contrast

On white

5.87
#8042CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8042CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042CD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042CD#FFFFFF#000000##FFFFFF
##8042CD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#6F6382
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8042cd;
/* rgb */ color: rgb(128, 66, 205);
/* oklch */ color: oklch(52.9% 0.204 299.8);
Tailwind
colors: {
  custom: {
    50: '#ab7bdd',
    500: '#8042cd',
    950: '#000000',
  },
}
SCSS
$custom: #8042cd;
$custom-light: #ab7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8042cd",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 266.763,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52884,
    "c": 0.20399,
    "h": 299.8
  },
  "luminance": 0.12893
}

Semantic roles & 50–950 ramp

primary
#8042CD
secondary
#B9D397
accent
#E1469C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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