#8040D0#8040D0

#8040D0 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.210 H 299.4°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8040D0
RGBrgb(128, 64, 208)
HSLhsl(267, 61%, 53%)
HSVhsv(267, 69%, 82%)
CMYKcmyk(38.5%, 69.2%, 0%, 18.4%)
CIE-LABlab(42.48, 55.49, -64.03)
CIE-LCHlch(42.48, 84.73, 310.92°)
OKLaboklab(52.86% 0.1031 -0.1826)
OKLCHoklch(52.86% 0.21 299.4)
XYZxyz(22.1178, 12.8098, 60.9695)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040D0 #90D040
analogous
#4048D0 #8040D0 #C840D0
triadic
#8040D0 #D08040 #40D080
tetradic
#8040D0 #D04048 #90D040 #40D0C8
square
#8040D0 #D04048 #90D040 #40D0C8
split-complementary
#8040D0 #D0C840 #48D040
monochromatic
#461E78 #622AA9 #8040D0 #A171DC #C1A2E8

Accessibility & contrast

On white

5.90
#8040D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8040D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040D0
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040D0#FFFFFF#000000##FFFFFF
##8040D01.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0063CD
Tritanopia (blue-blind)
#6D6383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8040d0;
/* rgb */ color: rgb(128, 64, 208);
/* oklch */ color: oklch(52.9% 0.210 299.4);
Tailwind
colors: {
  custom: {
    50: '#ab7adf',
    500: '#8040d0',
    950: '#000000',
  },
}
SCSS
$custom: #8040d0;
$custom-light: #ab7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#8040d0",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 266.667,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52863,
    "c": 0.20972,
    "h": 299.4
  },
  "luminance": 0.1281
}

Semantic roles & 50–950 ramp

primary
#8040D0
secondary
#B9D597
accent
#E4449D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040D0

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

Preview Lab → · Contrast checker → · Palette generator →

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