#8042D0#8042D0

#8042D0 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.207 H 299.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#8042D0
RGBrgb(128, 66, 208)
HSLhsl(266, 60%, 54%)
HSVhsv(266, 68%, 82%)
CMYKcmyk(38.5%, 68.3%, 0%, 18.4%)
CIE-LABlab(42.82, 54.53, -63.46)
CIE-LCHlch(42.82, 83.67, 310.67°)
OKLaboklab(53.11% 0.1011 -0.181)
OKLCHoklch(53.11% 0.207 299.2)
XYZxyz(22.2326, 13.0394, 61.0078)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042D0 #92D042
analogous
#424BD0 #8042D0 #C742D0
triadic
#8042D0 #D08042 #42D080
tetradic
#8042D0 #D0424B #92D042 #42D0C7
square
#8042D0 #D0424B #92D042 #42D0C7
split-complementary
#8042D0 #D0C742 #4BD042
monochromatic
#461E79 #622AAA #8042D0 #A173DC #C2A4E8

Accessibility & contrast

On white

5.82
#8042D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8042D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042D0
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042D0#FFFFFF#000000##FFFFFF
##8042D01.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#0064CD
Tritanopia (blue-blind)
#6D6484
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8042d0;
/* rgb */ color: rgb(128, 66, 208);
/* oklch */ color: oklch(53.1% 0.207 299.2);
Tailwind
colors: {
  custom: {
    50: '#ab7bdf',
    500: '#8042d0',
    950: '#000000',
  },
}
SCSS
$custom: #8042d0;
$custom-light: #ab7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8042d0",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 266.197,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53111,
    "c": 0.2073,
    "h": 299.2
  },
  "luminance": 0.1304
}

Semantic roles & 50–950 ramp

primary
#8042D0
secondary
#BBD599
accent
#E3449E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8042D0

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

Preview Lab → · Contrast checker → · Palette generator →

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