#8042BD#8042BD

#8042BD is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.186 H 303.7°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8042BD
RGBrgb(128, 66, 189)
HSLhsl(270, 48%, 50%)
HSVhsv(270, 65%, 74%)
CMYKcmyk(32.3%, 65.1%, 0%, 25.9%)
CIE-LABlab(41.47, 49.85, -54.62)
CIE-LCHlch(41.47, 73.95, 312.38°)
OKLaboklab(51.71% 0.1033 -0.155)
OKLCHoklch(51.71% 0.186 303.7)
XYZxyz(20.0335, 12.1598, 49.4259)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042BD #7FBD42
analogous
#4342BD #8042BD #BD42BC
triadic
#8042BD #BD8042 #42BD80
tetradic
#8042BD #BD4342 #7FBD42 #42BCBD
square
#8042BD #BD4342 #7FBD42 #42BCBD
split-complementary
#8042BD #BCBD42 #42BD43
monochromatic
#432262 #613290 #8042BD #9E6FCD #BD9DDD

Accessibility & contrast

On white

6.12
#8042BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8042BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042BD
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042BD#FFFFFF#000000##FFFFFF
##8042BD1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#1A62BA
Tritanopia (blue-blind)
#745D7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8042bd;
/* rgb */ color: rgb(128, 66, 189);
/* oklch */ color: oklch(51.7% 0.186 303.7);
Tailwind
colors: {
  custom: {
    50: '#a97ad2',
    500: '#8042bd',
    950: '#000000',
  },
}
SCSS
$custom: #8042bd;
$custom-light: #a97ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8042bd",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 270.244,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.18628,
    "h": 303.7
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#8042BD
secondary
#ADC992
accent
#D85093
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8042BD

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

Preview Lab → · Contrast checker → · Palette generator →

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