#8041A2#8041A2

#8041A2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.8% C 0.158 H 312.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8041A2
RGBrgb(128, 65, 162)
HSLhsl(279, 43%, 45%)
HSVhsv(279, 60%, 64%)
CMYKcmyk(21%, 59.9%, 0%, 36.5%)
CIE-LABlab(39.54, 44.01, -41.73)
CIE-LCHlch(39.54, 60.65, 316.52°)
OKLaboklab(49.76% 0.1055 -0.1172)
OKLCHoklch(49.76% 0.158 312)
XYZxyz(17.3128, 10.9788, 35.3825)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041A2 #63A241
analogous
#5041A2 #8041A2 #A24194
triadic
#8041A2 #A28041 #41A280
tetradic
#8041A2 #A25041 #63A241 #4194A2
square
#8041A2 #A25041 #63A241 #4194A2
split-complementary
#8041A2 #94A241 #41A250
monochromatic
#3B1E4B #5D2F76 #8041A2 #9E61BF #B98CD1

Accessibility & contrast

On white

6.57
#8041A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8041A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8041A2#FFFFFF#000000##FFFFFF
##8041A21.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205AA5
Deuteranopia (green-blind)
#3A5EA0
Tritanopia (blue-blind)
#7C536B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8041a2;
/* rgb */ color: rgb(128, 65, 162);
/* oklch */ color: oklch(49.8% 0.158 312.0);
Tailwind
colors: {
  custom: {
    50: '#a879be',
    500: '#8041a2',
    950: '#000000',
  },
}
SCSS
$custom: #8041a2;
$custom-light: #a879be;
$custom-dark: #000000;
JSON
{
  "hex": "#8041a2",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 278.969,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49762,
    "c": 0.1577,
    "h": 312
  },
  "luminance": 0.10978
}

Semantic roles & 50–950 ramp

primary
#8041A2
secondary
#97BC83
accent
#D35581
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8041A2

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

Preview Lab → · Contrast checker → · Palette generator →

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