#8041D4#8041D4

#8041D4 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.213 H 298.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8041D4
RGBrgb(128, 65, 212)
HSLhsl(266, 63%, 54%)
HSVhsv(266, 69%, 83%)
CMYKcmyk(39.6%, 69.3%, 0%, 16.9%)
CIE-LABlab(42.95, 56.01, -65.56)
CIE-LCHlch(42.95, 86.23, 310.51°)
OKLaboklab(53.29% 0.1014 -0.1872)
OKLCHoklch(53.29% 0.213 298.5)
XYZxyz(22.6730, 13.1229, 63.6130)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041D4 #95D441
analogous
#414CD4 #8041D4 #C941D4
triadic
#8041D4 #D48041 #41D480
tetradic
#8041D4 #D4414C #95D441 #41D4C9
square
#8041D4 #D4414C #95D441 #41D4C9
split-complementary
#8041D4 #D4C941 #4CD441
monochromatic
#461D7E #6228B0 #8041D4 #A173DF #C3A5EB

Accessibility & contrast

On white

5.79
#8041D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8041D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8041D4
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8041D4#FFFFFF#000000##FFFFFF
##8041D41.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0064D1
Tritanopia (blue-blind)
#6C6586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8041d4;
/* rgb */ color: rgb(128, 65, 212);
/* oklch */ color: oklch(53.3% 0.213 298.5);
Tailwind
colors: {
  custom: {
    50: '#ab7ae2',
    500: '#8041d4',
    950: '#000000',
  },
}
SCSS
$custom: #8041d4;
$custom-light: #ab7ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8041d4",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 212
  },
  "hsl": {
    "h": 265.714,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.53294,
    "c": 0.21287,
    "h": 298.5
  },
  "luminance": 0.13123
}

Semantic roles & 50–950 ramp

primary
#8041D4
secondary
#BDD899
accent
#E642A0
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8041D4

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

Preview Lab → · Contrast checker → · Palette generator →

#8041D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva