#8041B4#8041B4

#8041B4 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.178 H 306.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8041B4
RGBrgb(128, 65, 180)
HSLhsl(273, 47%, 48%)
HSVhsv(273, 64%, 71%)
CMYKcmyk(28.9%, 63.9%, 0%, 29.4%)
CIE-LABlab(40.68, 48.19, -50.61)
CIE-LCHlch(40.68, 69.89, 313.60°)
OKLaboklab(50.95% 0.1051 -0.1432)
OKLCHoklch(50.95% 0.178 306.3)
XYZxyz(19.0288, 11.6653, 44.4203)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041B4 #75B441
analogous
#4741B4 #8041B4 #B441AE
triadic
#8041B4 #B48041 #41B480
tetradic
#8041B4 #B44741 #75B441 #41AEB4
square
#8041B4 #B44741 #75B441 #41AEB4
split-complementary
#8041B4 #AEB441 #41B447
monochromatic
#40215A #603187 #8041B4 #9E69C9 #BB96D9

Accessibility & contrast

On white

6.30
#8041B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8041B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041B4#FFFFFF#000000##FFFFFF
##8041B41.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#2760B1
Tritanopia (blue-blind)
#775975
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8041b4;
/* rgb */ color: rgb(128, 65, 180);
/* oklch */ color: oklch(50.9% 0.178 306.3);
Tailwind
colors: {
  custom: {
    50: '#a979cb',
    500: '#8041b4',
    950: '#000000',
  },
}
SCSS
$custom: #8041b4;
$custom-light: #a979cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8041b4",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 180
  },
  "hsl": {
    "h": 272.87,
    "s": 46.939,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50949,
    "c": 0.17766,
    "h": 306.3
  },
  "luminance": 0.11665
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8041B4

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

Preview Lab → · Contrast checker → · Palette generator →

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