#7E41BA#7E41BA

#7E41BA is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.184 H 303.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#7E41BA
RGBrgb(126, 65, 186)
HSLhsl(270, 48%, 49%)
HSVhsv(270, 65%, 73%)
CMYKcmyk(32.3%, 65.1%, 0%, 27.1%)
CIE-LABlab(40.83, 49.19, -53.90)
CIE-LCHlch(40.83, 72.97, 312.38°)
OKLaboklab(51.14% 0.102 -0.1529)
OKLCHoklch(51.14% 0.184 303.7)
XYZxyz(19.3554, 11.7614, 47.6953)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41BA #7DBA41
analogous
#4241BA #7E41BA #BA41BA
triadic
#7E41BA #BA7E41 #41BA7E
tetradic
#7E41BA #BA4241 #7DBA41 #41BABA
square
#7E41BA #BA4241 #7DBA41 #41BABA
split-complementary
#7E41BA #BABA41 #41BA42
monochromatic
#41215F #5F318D #7E41BA #9C6CCC #BB9ADC

Accessibility & contrast

On white

6.26
#7E41BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7E41BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41BA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41BA#FFFFFF#000000##FFFFFF
##7E41BA1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#1A60B7
Tritanopia (blue-blind)
#735B78
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e41ba;
/* rgb */ color: rgb(126, 65, 186);
/* oklch */ color: oklch(51.1% 0.184 303.7);
Tailwind
colors: {
  custom: {
    50: '#a879cf',
    500: '#7e41ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e41ba;
$custom-light: #a879cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41ba",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 270.248,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51135,
    "c": 0.18384,
    "h": 303.7
  },
  "luminance": 0.11761
}

Semantic roles & 50–950 ramp

primary
#7E41BA
secondary
#ABC88F
accent
#D85093
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E41BA

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

Preview Lab → · Contrast checker → · Palette generator →

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