#8040CE#8040CE

#8040CE is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.208 H 299.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8040CE
RGBrgb(128, 64, 206)
HSLhsl(267, 59%, 53%)
HSVhsv(267, 69%, 81%)
CMYKcmyk(37.9%, 68.9%, 0%, 19.2%)
CIE-LABlab(42.33, 55.00, -63.12)
CIE-LCHlch(42.33, 83.72, 311.07°)
OKLaboklab(52.71% 0.1034 -0.18)
OKLCHoklch(52.71% 0.208 299.9)
XYZxyz(21.8733, 12.7120, 59.6818)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040CE #8ECE40
analogous
#4047CE #8040CE #C740CE
triadic
#8040CE #CE8040 #40CE80
tetradic
#8040CE #CE4047 #8ECE40 #40CEC7
square
#8040CE #CE4047 #8ECE40 #40CEC7
split-complementary
#8040CE #CEC740 #47CE40
monochromatic
#451E75 #622BA6 #8040CE #A071DA #C1A1E7

Accessibility & contrast

On white

5.93
#8040CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8040CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040CE
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040CE#FFFFFF#000000##FFFFFF
##8040CE1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#6E6282
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8040ce;
/* rgb */ color: rgb(128, 64, 206);
/* oklch */ color: oklch(52.7% 0.208 299.9);
Tailwind
colors: {
  custom: {
    50: '#ab7ade',
    500: '#8040ce',
    950: '#000000',
  },
}
SCSS
$custom: #8040ce;
$custom-light: #ab7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8040ce",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 267.042,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5271,
    "c": 0.20755,
    "h": 299.9
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#8040CE
secondary
#B8D496
accent
#E2459C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040CE

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

Preview Lab → · Contrast checker → · Palette generator →

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