#8040CD#8040CD

#8040CD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.6% C 0.206 H 300.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8040CD
RGBrgb(128, 64, 205)
HSLhsl(267, 59%, 53%)
HSVhsv(267, 69%, 80%)
CMYKcmyk(37.6%, 68.8%, 0%, 19.6%)
CIE-LABlab(42.25, 54.75, -62.66)
CIE-LCHlch(42.25, 83.21, 311.15°)
OKLaboklab(52.63% 0.1035 -0.1786)
OKLCHoklch(52.63% 0.206 300.1)
XYZxyz(21.7522, 12.6636, 59.0441)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040CD #8DCD40
analogous
#4046CD #8040CD #C640CD
triadic
#8040CD #CD8040 #40CD80
tetradic
#8040CD #CD4046 #8DCD40 #40CDC6
square
#8040CD #CD4046 #8DCD40 #40CDC6
split-complementary
#8040CD #CDC640 #46CD40
monochromatic
#451E74 #622BA5 #8040CD #A071DA #C1A1E6

Accessibility & contrast

On white

5.94
#8040CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8040CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040CD
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040CD#FFFFFF#000000##FFFFFF
##8040CD1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#6F6282
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8040cd;
/* rgb */ color: rgb(128, 64, 205);
/* oklch */ color: oklch(52.6% 0.206 300.1);
Tailwind
colors: {
  custom: {
    50: '#ab7add',
    500: '#8040cd',
    950: '#000000',
  },
}
SCSS
$custom: #8040cd;
$custom-light: #ab7add;
$custom-dark: #000000;
JSON
{
  "hex": "#8040cd",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 267.234,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.20646,
    "h": 300.1
  },
  "luminance": 0.12664
}

Semantic roles & 50–950 ramp

primary
#8040CD
secondary
#B7D396
accent
#E2469B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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