#8040C9#8040C9

#8040C9 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.202 H 301.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8040C9
RGBrgb(128, 64, 201)
HSLhsl(268, 56%, 52%)
HSVhsv(268, 68%, 79%)
CMYKcmyk(36.3%, 68.2%, 0%, 21.2%)
CIE-LABlab(41.96, 53.77, -60.82)
CIE-LCHlch(41.96, 81.18, 311.48°)
OKLaboklab(52.33% 0.1041 -0.1732)
OKLCHoklch(52.33% 0.202 301)
XYZxyz(21.2755, 12.4729, 56.5336)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040C9 #89C940
analogous
#4045C9 #8040C9 #C440C9
triadic
#8040C9 #C98040 #40C980
tetradic
#8040C9 #C94045 #89C940 #40C9C4
square
#8040C9 #C94045 #89C940 #40C9C4
split-complementary
#8040C9 #C9C440 #45C940
monochromatic
#451F6F #622D9F #8040C9 #A070D6 #BF9FE4

Accessibility & contrast

On white

6.01
#8040C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8040C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040C9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040C9#FFFFFF#000000##FFFFFF
##8040C91.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0062C6
Tritanopia (blue-blind)
#70607F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8040c9;
/* rgb */ color: rgb(128, 64, 201);
/* oklch */ color: oklch(52.3% 0.202 301.0);
Tailwind
colors: {
  custom: {
    50: '#aa79da',
    500: '#8040c9',
    950: '#000000',
  },
}
SCSS
$custom: #8040c9;
$custom-light: #aa79da;
$custom-dark: #000000;
JSON
{
  "hex": "#8040c9",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 268.029,
    "s": 55.918,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52331,
    "c": 0.2021,
    "h": 301
  },
  "luminance": 0.12473
}

Semantic roles & 50–950 ramp

primary
#8040C9
secondary
#B4D094
accent
#DF4999
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040C9

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

Preview Lab → · Contrast checker → · Palette generator →

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