#7E41B5#7E41B5

#7E41B5 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.178 H 305.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7E41B5
RGBrgb(126, 65, 181)
HSLhsl(272, 47%, 48%)
HSVhsv(272, 64%, 71%)
CMYKcmyk(30.4%, 64.1%, 0%, 29%)
CIE-LABlab(40.50, 47.98, -51.51)
CIE-LCHlch(40.50, 70.39, 312.97°)
OKLaboklab(50.78% 0.1024 -0.1459)
OKLCHoklch(50.78% 0.178 305.1)
XYZxyz(18.8331, 11.5525, 44.9448)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41B5 #78B541
analogous
#4441B5 #7E41B5 #B541B2
triadic
#7E41B5 #B57E41 #41B57E
tetradic
#7E41B5 #B54441 #78B541 #41B2B5
square
#7E41B5 #B54441 #78B541 #41B2B5
split-complementary
#7E41B5 #B2B541 #41B544
monochromatic
#3F215B #5F3188 #7E41B5 #9C6AC9 #BA97DA

Accessibility & contrast

On white

6.34
#7E41B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7E41B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41B5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41B5#FFFFFF#000000##FFFFFF
##7E41B51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#2360B2
Tritanopia (blue-blind)
#745975
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7e41b5;
/* rgb */ color: rgb(126, 65, 181);
/* oklch */ color: oklch(50.8% 0.178 305.1);
Tailwind
colors: {
  custom: {
    50: '#a779cc',
    500: '#7e41b5',
    950: '#000000',
  },
}
SCSS
$custom: #7e41b5;
$custom-light: #a779cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41b5",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 271.552,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50783,
    "c": 0.17825,
    "h": 305.1
  },
  "luminance": 0.11552
}

Semantic roles & 50–950 ramp

primary
#7E41B5
secondary
#A7C58C
accent
#D75190
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7E41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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