#8041B7#8041B7

#8041B7 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.181 H 305.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8041B7
RGBrgb(128, 65, 183)
HSLhsl(272, 48%, 49%)
HSVhsv(272, 64%, 72%)
CMYKcmyk(30.1%, 64.5%, 0%, 28.2%)
CIE-LABlab(40.88, 48.91, -52.06)
CIE-LCHlch(40.88, 71.43, 313.22°)
OKLaboklab(51.16% 0.1049 -0.1475)
OKLCHoklch(51.16% 0.181 305.4)
XYZxyz(19.3378, 11.7888, 46.0473)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041B7 #78B741
analogous
#4541B7 #8041B7 #B741B3
triadic
#8041B7 #B78041 #41B780
tetradic
#8041B7 #B74541 #78B741 #41B3B7
square
#8041B7 #B74541 #78B741 #41B3B7
split-complementary
#8041B7 #B3B741 #41B745
monochromatic
#41215D #60318A #8041B7 #9E6BCA #BB98DA

Accessibility & contrast

On white

6.25
#8041B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8041B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041B7#FFFFFF#000000##FFFFFF
##8041B71.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2361B4
Tritanopia (blue-blind)
#765A76
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8041b7;
/* rgb */ color: rgb(128, 65, 183);
/* oklch */ color: oklch(51.2% 0.181 305.4);
Tailwind
colors: {
  custom: {
    50: '#a979cd',
    500: '#8041b7',
    950: '#000000',
  },
}
SCSS
$custom: #8041b7;
$custom-light: #a979cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8041b7",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 272.034,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51157,
    "c": 0.18098,
    "h": 305.4
  },
  "luminance": 0.11789
}

Semantic roles & 50–950 ramp

primary
#8041B7
secondary
#A8C68E
accent
#D7518F
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8041B7

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

Preview Lab → · Contrast checker → · Palette generator →

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