#8041B5#8041B5

#8041B5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.0% C 0.179 H 306.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8041B5
RGBrgb(128, 65, 181)
HSLhsl(273, 47%, 48%)
HSVhsv(273, 64%, 71%)
CMYKcmyk(29.3%, 64.1%, 0%, 29%)
CIE-LABlab(40.75, 48.43, -51.09)
CIE-LCHlch(40.75, 70.40, 313.47°)
OKLaboklab(51.02% 0.1051 -0.1446)
OKLCHoklch(51.02% 0.179 306)
XYZxyz(19.1311, 11.7061, 44.9588)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041B5 #76B541
analogous
#4641B5 #8041B5 #B541B0
triadic
#8041B5 #B58041 #41B580
tetradic
#8041B5 #B54641 #76B541 #41B0B5
square
#8041B5 #B54641 #76B541 #41B0B5
split-complementary
#8041B5 #B0B541 #41B546
monochromatic
#40215B #603188 #8041B5 #9E6AC9 #BB97DA

Accessibility & contrast

On white

6.29
#8041B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8041B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041B5#FFFFFF#000000##FFFFFF
##8041B51.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#2660B2
Tritanopia (blue-blind)
#775975
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8041b5;
/* rgb */ color: rgb(128, 65, 181);
/* oklch */ color: oklch(51.0% 0.179 306.0);
Tailwind
colors: {
  custom: {
    50: '#a979cc',
    500: '#8041b5',
    950: '#000000',
  },
}
SCSS
$custom: #8041b5;
$custom-light: #a979cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8041b5",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 272.586,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51018,
    "c": 0.17877,
    "h": 306
  },
  "luminance": 0.11706
}

Semantic roles & 50–950 ramp

primary
#8041B5
secondary
#A6C58C
accent
#D7518E
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8041B5

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

Preview Lab → · Contrast checker → · Palette generator →

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