#8042D9#8042D9

#8042D9 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.217 H 297.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8042D9
RGBrgb(128, 66, 217)
HSLhsl(265, 67%, 55%)
HSVhsv(265, 70%, 85%)
CMYKcmyk(41%, 69.6%, 0%, 14.9%)
CIE-LABlab(43.50, 56.78, -67.53)
CIE-LCHlch(43.50, 88.23, 310.06°)
OKLaboklab(53.81% 0.0996 -0.1929)
OKLCHoklch(53.81% 0.217 297.3)
XYZxyz(23.3714, 13.4950, 67.0056)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8042D9 #9BD942
analogous
#424FD9 #8042D9 #CC42D9
triadic
#8042D9 #D98042 #42D980
tetradic
#8042D9 #D9424F #9BD942 #42D9CC
square
#8042D9 #D9424F #9BD942 #42D9CC
split-complementary
#8042D9 #D9CC42 #4FD942
monochromatic
#471B86 #6225B9 #8042D9 #A275E3 #C4A8ED

Accessibility & contrast

On white

5.68
#8042D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8042D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8042D9
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8042D9#FFFFFF#000000##FFFFFF
##8042D91.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#0065D6
Tritanopia (blue-blind)
#6A6789
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8042d9;
/* rgb */ color: rgb(128, 66, 217);
/* oklch */ color: oklch(53.8% 0.217 297.3);
Tailwind
colors: {
  custom: {
    50: '#ac7be6',
    500: '#8042d9',
    950: '#000000',
  },
}
SCSS
$custom: #8042d9;
$custom-light: #ac7be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8042d9",
  "rgb": {
    "r": 128,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 264.636,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.53806,
    "c": 0.21714,
    "h": 297.3
  },
  "luminance": 0.13495
}

Semantic roles & 50–950 ramp

primary
#8042D9
secondary
#C1DB9C
accent
#E93EA3
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8042D9

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

Preview Lab → · Contrast checker → · Palette generator →

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