#8041BA#8041BA

#8041BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.184 H 304.6°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8041BA
RGBrgb(128, 65, 186)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 65%, 73%)
CMYKcmyk(31.2%, 65.1%, 0%, 27.1%)
CIE-LABlab(41.08, 49.63, -53.49)
CIE-LCHlch(41.08, 72.97, 312.85°)
OKLaboklab(51.37% 0.1047 -0.1517)
OKLCHoklch(51.37% 0.184 304.6)
XYZxyz(19.6533, 11.9151, 47.7093)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041BA #7BBA41
analogous
#4441BA #8041BA #BA41B8
triadic
#8041BA #BA8041 #41BA80
tetradic
#8041BA #BA4441 #7BBA41 #41B8BA
square
#8041BA #BA4441 #7BBA41 #41B8BA
split-complementary
#8041BA #B8BA41 #41BA44
monochromatic
#42215F #61318D #8041BA #9E6CCC #BC9ADC

Accessibility & contrast

On white

6.21
#8041BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8041BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041BA#FFFFFF#000000##FFFFFF
##8041BA1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#1E61B7
Tritanopia (blue-blind)
#755B78
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8041ba;
/* rgb */ color: rgb(128, 65, 186);
/* oklch */ color: oklch(51.4% 0.184 304.6);
Tailwind
colors: {
  custom: {
    50: '#a97acf',
    500: '#8041ba',
    950: '#000000',
  },
}
SCSS
$custom: #8041ba;
$custom-light: #a97acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8041ba",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 271.24,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51367,
    "c": 0.18431,
    "h": 304.6
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#8041BA
secondary
#AAC88F
accent
#D85091
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8041BA

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

Preview Lab → · Contrast checker → · Palette generator →

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