#8042D2#8042D2

#8042D2 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.209 H 298.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8042D2
RGBrgb(128, 66, 210)
HSLhsl(266, 62%, 54%)
HSVhsv(266, 69%, 82%)
CMYKcmyk(39%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.97, 55.03, -64.37)
CIE-LCHlch(42.97, 84.69, 310.52°)
OKLaboklab(53.26% 0.1008 -0.1837)
OKLCHoklch(53.26% 0.209 298.7)
XYZxyz(22.4802, 13.1385, 62.3119)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042D2 #94D242
analogous
#424CD2 #8042D2 #C842D2
triadic
#8042D2 #D28042 #42D280
tetradic
#8042D2 #D2424C #94D242 #42D2C8
square
#8042D2 #D2424C #94D242 #42D2C8
split-complementary
#8042D2 #D2C842 #4CD242
monochromatic
#461E7C #6229AD #8042D2 #A173DE #C2A5EA

Accessibility & contrast

On white

5.79
#8042D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8042D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042D2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042D2#FFFFFF#000000##FFFFFF
##8042D21.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#6D6585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8042d2;
/* rgb */ color: rgb(128, 66, 210);
/* oklch */ color: oklch(53.3% 0.209 298.7);
Tailwind
colors: {
  custom: {
    50: '#ab7be1',
    500: '#8042d2',
    950: '#000000',
  },
}
SCSS
$custom: #8042d2;
$custom-light: #ab7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#8042d2",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 265.833,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53264,
    "c": 0.20949,
    "h": 298.7
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#8042D2
secondary
#BCD799
accent
#E5439F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042D2

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

Preview Lab → · Contrast checker → · Palette generator →

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