#8040CF#8040CF

#8040CF is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.209 H 299.7°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8040CF
RGBrgb(128, 64, 207)
HSLhsl(267, 60%, 53%)
HSVhsv(267, 69%, 81%)
CMYKcmyk(38.2%, 69.1%, 0%, 18.8%)
CIE-LABlab(42.40, 55.25, -63.57)
CIE-LCHlch(42.40, 84.22, 310.99°)
OKLaboklab(52.79% 0.1032 -0.1813)
OKLCHoklch(52.79% 0.209 299.7)
XYZxyz(21.9952, 12.7607, 60.3236)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040CF #8FCF40
analogous
#4047CF #8040CF #C740CF
triadic
#8040CF #CF8040 #40CF80
tetradic
#8040CF #CF4047 #8FCF40 #40CFC7
square
#8040CF #CF4047 #8FCF40 #40CFC7
split-complementary
#8040CF #CFC740 #47CF40
monochromatic
#461E77 #622AA8 #8040CF #A171DB #C1A2E8

Accessibility & contrast

On white

5.91
#8040CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8040CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040CF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040CF#FFFFFF#000000##FFFFFF
##8040CF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#6E6283
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8040cf;
/* rgb */ color: rgb(128, 64, 207);
/* oklch */ color: oklch(52.8% 0.209 299.7);
Tailwind
colors: {
  custom: {
    50: '#ab7adf',
    500: '#8040cf',
    950: '#000000',
  },
}
SCSS
$custom: #8040cf;
$custom-light: #ab7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#8040cf",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 266.853,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52786,
    "c": 0.20864,
    "h": 299.7
  },
  "luminance": 0.12761
}

Semantic roles & 50–950 ramp

primary
#8040CF
secondary
#B9D497
accent
#E3459C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040CF

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

Preview Lab → · Contrast checker → · Palette generator →

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