#7E41BB#7E41BB

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

Color values

HEX#7E41BB
RGBrgb(126, 65, 187)
HSLhsl(270, 48%, 49%)
HSVhsv(270, 65%, 73%)
CMYKcmyk(32.6%, 65.2%, 0%, 26.7%)
CIE-LABlab(40.90, 49.43, -54.38)
CIE-LCHlch(40.90, 73.49, 312.27°)
OKLaboklab(51.21% 0.1019 -0.1543)
OKLCHoklch(51.21% 0.185 303.4)
XYZxyz(19.4621, 11.8041, 48.2572)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41BB #7EBB41
analogous
#4141BB #7E41BB #BB41BB
triadic
#7E41BB #BB7E41 #41BB7E
tetradic
#7E41BB #BB4141 #7EBB41 #41BBBB
square
#7E41BB #BB4141 #7EBB41 #41BBBB
split-complementary
#7E41BB #BBBB41 #41BB41
monochromatic
#412160 #5F318E #7E41BB #9D6DCC #BB9ADC

Accessibility & contrast

On white

6.25
#7E41BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7E41BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41BB
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41BB#FFFFFF#000000##FFFFFF
##7E41BB1.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)
#005FBF
Deuteranopia (green-blind)
#1760B8
Tritanopia (blue-blind)
#725C78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e41bb;
/* rgb */ color: rgb(126, 65, 187);
/* oklch */ color: oklch(51.2% 0.185 303.4);
Tailwind
colors: {
  custom: {
    50: '#a879d0',
    500: '#7e41bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e41bb;
$custom-light: #a879d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41bb",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 270,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51207,
    "c": 0.18496,
    "h": 303.4
  },
  "luminance": 0.11804
}

Semantic roles & 50–950 ramp

primary
#7E41BB
secondary
#ACC890
accent
#D85094
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E41BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7E41BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva