#8040C8#8040C8

#8040C8 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.201 H 301.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8040C8
RGBrgb(128, 64, 200)
HSLhsl(268, 55%, 52%)
HSVhsv(268, 68%, 78%)
CMYKcmyk(36%, 68%, 0%, 21.6%)
CIE-LABlab(41.89, 53.52, -60.36)
CIE-LCHlch(41.89, 80.67, 311.57°)
OKLaboklab(52.26% 0.1043 -0.1719)
OKLCHoklch(52.26% 0.201 301.2)
XYZxyz(21.1583, 12.4260, 55.9161)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040C8 #88C840
analogous
#4044C8 #8040C8 #C440C8
triadic
#8040C8 #C88040 #40C880
tetradic
#8040C8 #C84044 #88C840 #40C8C4
square
#8040C8 #C84044 #88C840 #40C8C4
split-complementary
#8040C8 #C8C440 #44C840
monochromatic
#44206E #622D9D #8040C8 #A070D6 #BF9FE3

Accessibility & contrast

On white

6.03
#8040C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8040C8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040C8#FFFFFF#000000##FFFFFF
##8040C81.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#71607F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8040c8;
/* rgb */ color: rgb(128, 64, 200);
/* oklch */ color: oklch(52.3% 0.201 301.2);
Tailwind
colors: {
  custom: {
    50: '#aa79da',
    500: '#8040c8',
    950: '#000000',
  },
}
SCSS
$custom: #8040c8;
$custom-light: #aa79da;
$custom-dark: #000000;
JSON
{
  "hex": "#8040c8",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 268.235,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52256,
    "c": 0.20101,
    "h": 301.2
  },
  "luminance": 0.12426
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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