#8041B2#8041B2

#8041B2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.175 H 306.9°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8041B2
RGBrgb(128, 65, 178)
HSLhsl(273, 47%, 48%)
HSVhsv(273, 63%, 70%)
CMYKcmyk(28.1%, 63.5%, 0%, 30.2%)
CIE-LABlab(40.55, 47.72, -49.64)
CIE-LCHlch(40.55, 68.86, 313.87°)
OKLaboklab(50.81% 0.1052 -0.1404)
OKLCHoklch(50.81% 0.175 306.9)
XYZxyz(18.8266, 11.5843, 43.3551)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041B2 #73B241
analogous
#4741B2 #8041B2 #B241AC
triadic
#8041B2 #B28041 #41B280
tetradic
#8041B2 #B24741 #73B241 #41ACB2
square
#8041B2 #B24741 #73B241 #41ACB2
split-complementary
#8041B2 #ACB241 #41B247
monochromatic
#402058 #603185 #8041B2 #9E68C8 #BB95D8

Accessibility & contrast

On white

6.33
#8041B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8041B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8041B2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8041B2#FFFFFF#000000##FFFFFF
##8041B21.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2A60AF
Tritanopia (blue-blind)
#785873
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8041b2;
/* rgb */ color: rgb(128, 65, 178);
/* oklch */ color: oklch(50.8% 0.175 306.9);
Tailwind
colors: {
  custom: {
    50: '#a879ca',
    500: '#8041b2',
    950: '#000000',
  },
}
SCSS
$custom: #8041b2;
$custom-light: #a879ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8041b2",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 273.451,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50812,
    "c": 0.17544,
    "h": 306.9
  },
  "luminance": 0.11584
}

Semantic roles & 50–950 ramp

primary
#8041B2
secondary
#A4C48B
accent
#D6528C
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8041B2

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

Preview Lab → · Contrast checker → · Palette generator →

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