#8041AA#8041AA

#8041AA is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.3% C 0.167 H 309.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8041AA
RGBrgb(128, 65, 170)
HSLhsl(276, 45%, 46%)
HSVhsv(276, 62%, 67%)
CMYKcmyk(24.7%, 61.8%, 0%, 33.3%)
CIE-LABlab(40.04, 45.85, -45.72)
CIE-LCHlch(40.04, 64.75, 315.08°)
OKLaboklab(50.28% 0.1055 -0.1289)
OKLCHoklch(50.28% 0.167 309.3)
XYZxyz(18.0467, 11.2724, 39.2475)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041AA #6BAA41
analogous
#4B41AA #8041AA #AA419F
triadic
#8041AA #AA8041 #41AA80
tetradic
#8041AA #AA4B41 #6BAA41 #419FAA
square
#8041AA #AA4B41 #6BAA41 #419FAA
split-complementary
#8041AA #9FAA41 #41AA4B
monochromatic
#3D1F51 #5F307E #8041AA #9E64C4 #BA91D5

Accessibility & contrast

On white

6.45
#8041AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8041AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041AA#FFFFFF#000000##FFFFFF
##8041AA1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAD
Deuteranopia (green-blind)
#335FA8
Tritanopia (blue-blind)
#7A556F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8041aa;
/* rgb */ color: rgb(128, 65, 170);
/* oklch */ color: oklch(50.3% 0.167 309.3);
Tailwind
colors: {
  custom: {
    50: '#a879c4',
    500: '#8041aa',
    950: '#000000',
  },
}
SCSS
$custom: #8041aa;
$custom-light: #a879c4;
$custom-dark: #000000;
JSON
{
  "hex": "#8041aa",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 276,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50277,
    "c": 0.16656,
    "h": 309.3
  },
  "luminance": 0.11272
}

Semantic roles & 50–950 ramp

primary
#8041AA
secondary
#9EC087
accent
#D45387
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8041AA

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

Preview Lab → · Contrast checker → · Palette generator →

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