#8040CA#8040CA

#8040CA is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.203 H 300.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8040CA
RGBrgb(128, 64, 202)
HSLhsl(268, 57%, 52%)
HSVhsv(268, 68%, 79%)
CMYKcmyk(36.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(42.03, 54.01, -61.28)
CIE-LCHlch(42.03, 81.69, 311.39°)
OKLaboklab(52.41% 0.104 -0.1746)
OKLCHoklch(52.41% 0.203 300.8)
XYZxyz(21.3936, 12.5201, 57.1552)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8040CA #8ACA40
analogous
#4045CA #8040CA #C540CA
triadic
#8040CA #CA8040 #40CA80
tetradic
#8040CA #CA4045 #8ACA40 #40CAC5
square
#8040CA #CA4045 #8ACA40 #40CAC5
split-complementary
#8040CA #CAC540 #45CA40
monochromatic
#451F70 #622CA0 #8040CA #A070D7 #C0A0E5

Accessibility & contrast

On white

5.99
#8040CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8040CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8040CA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8040CA#FFFFFF#000000##FFFFFF
##8040CA1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#706080
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8040ca;
/* rgb */ color: rgb(128, 64, 202);
/* oklch */ color: oklch(52.4% 0.203 300.8);
Tailwind
colors: {
  custom: {
    50: '#aa79db',
    500: '#8040ca',
    950: '#000000',
  },
}
SCSS
$custom: #8040ca;
$custom-light: #aa79db;
$custom-dark: #000000;
JSON
{
  "hex": "#8040ca",
  "rgb": {
    "r": 128,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 267.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52406,
    "c": 0.20319,
    "h": 300.8
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

primary
#8040CA
secondary
#B5D195
accent
#E04899
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8040CA

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

Preview Lab → · Contrast checker → · Palette generator →

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