#8041D2#8041D2

#8041D2 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.211 H 298.9°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8041D2
RGBrgb(128, 65, 210)
HSLhsl(266, 62%, 54%)
HSVhsv(266, 69%, 82%)
CMYKcmyk(39%, 69%, 0%, 17.6%)
CIE-LABlab(42.80, 55.51, -64.66)
CIE-LCHlch(42.80, 85.22, 310.65°)
OKLaboklab(53.14% 0.1017 -0.1845)
OKLCHoklch(53.14% 0.211 298.9)
XYZxyz(22.4223, 13.0226, 62.2926)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8041D2 #93D241
analogous
#414BD2 #8041D2 #C941D2
triadic
#8041D2 #D28041 #41D280
tetradic
#8041D2 #D2414B #93D241 #41D2C9
square
#8041D2 #D2414B #93D241 #41D2C9
split-complementary
#8041D2 #D2C941 #4BD241
monochromatic
#461D7B #6229AD #8041D2 #A172DE #C2A4E9

Accessibility & contrast

On white

5.83
#8041D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8041D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8041D2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8041D2#FFFFFF#000000##FFFFFF
##8041D21.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0064CF
Tritanopia (blue-blind)
#6D6485
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8041d2;
/* rgb */ color: rgb(128, 65, 210);
/* oklch */ color: oklch(53.1% 0.211 298.9);
Tailwind
colors: {
  custom: {
    50: '#ab7ae1',
    500: '#8041d2',
    950: '#000000',
  },
}
SCSS
$custom: #8041d2;
$custom-light: #ab7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8041d2",
  "rgb": {
    "r": 128,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 266.069,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5314,
    "c": 0.2107,
    "h": 298.9
  },
  "luminance": 0.13023
}

Semantic roles & 50–950 ramp

primary
#8041D2
secondary
#BBD698
accent
#E5439E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8041D2

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

Preview Lab → · Contrast checker → · Palette generator →

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