#8040DC#8040DC

#8040DC is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.223 H 297.0°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8040DC
RGBrgb(128, 64, 220)
HSLhsl(265, 69%, 56%)
HSVhsv(265, 71%, 86%)
CMYKcmyk(41.8%, 70.9%, 0%, 13.7%)
CIE-LABlab(43.39, 58.48, -69.42)
CIE-LCHlch(43.39, 90.77, 310.11°)
OKLaboklab(53.8% 0.1009 -0.1985)
OKLCHoklch(53.8% 0.223 297)
XYZxyz(23.6504, 13.4228, 69.0411)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040DC #9CDC40
analogous
#404EDC #8040DC #CE40DC
triadic
#8040DC #DC8040 #40DC80
tetradic
#8040DC #DC404E #9CDC40 #40DCCE
square
#8040DC #DC404E #9CDC40 #40DCCE
split-complementary
#8040DC #DCCE40 #4EDC40
monochromatic
#471989 #6223BC #8040DC #A274E5 #C5A7EF

Accessibility & contrast

On white

5.70
#8040DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8040DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040DC
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040DC#FFFFFF#000000##FFFFFF
##8040DC1.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E1
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#68678A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8040dc;
/* rgb */ color: rgb(128, 64, 220);
/* oklch */ color: oklch(53.8% 0.223 297.0);
Tailwind
colors: {
  custom: {
    50: '#ac7ae8',
    500: '#8040dc',
    950: '#000000',
  },
}
SCSS
$custom: #8040dc;
$custom-light: #ac7ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#8040dc",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 264.615,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53803,
    "c": 0.22268,
    "h": 297
  },
  "luminance": 0.13423
}

Semantic roles & 50–950 ramp

primary
#8040DC
secondary
#C2DC9B
accent
#EC3CA4
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8040DC

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

Preview Lab → · Contrast checker → · Palette generator →

#8040DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva