#7E41B7#7E41B7

#7E41B7 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.180 H 304.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#7E41B7
RGBrgb(126, 65, 183)
HSLhsl(271, 48%, 49%)
HSVhsv(271, 64%, 72%)
CMYKcmyk(31.1%, 64.5%, 0%, 28.2%)
CIE-LABlab(40.63, 48.46, -52.47)
CIE-LCHlch(40.63, 71.42, 312.73°)
OKLaboklab(50.92% 0.1022 -0.1487)
OKLCHoklch(50.92% 0.18 304.5)
XYZxyz(19.0398, 11.6352, 46.0333)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41B7 #7AB741
analogous
#4341B7 #7E41B7 #B741B5
triadic
#7E41B7 #B77E41 #41B77E
tetradic
#7E41B7 #B74341 #7AB741 #41B5B7
square
#7E41B7 #B74341 #7AB741 #41B5B7
split-complementary
#7E41B7 #B5B741 #41B743
monochromatic
#40215D #5F318A #7E41B7 #9C6BCA #BA98DA

Accessibility & contrast

On white

6.31
#7E41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E41B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41B7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41B7#FFFFFF#000000##FFFFFF
##7E41B71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#2060B4
Tritanopia (blue-blind)
#745A76
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e41b7;
/* rgb */ color: rgb(126, 65, 183);
/* oklch */ color: oklch(50.9% 0.180 304.5);
Tailwind
colors: {
  custom: {
    50: '#a779cd',
    500: '#7e41b7',
    950: '#000000',
  },
}
SCSS
$custom: #7e41b7;
$custom-light: #a779cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41b7",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 271.017,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50923,
    "c": 0.18049,
    "h": 304.5
  },
  "luminance": 0.11635
}

Semantic roles & 50–950 ramp

primary
#7E41B7
secondary
#A9C68E
accent
#D75192
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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