#7E41C2#7E41C2

#7E41C2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.193 H 301.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7E41C2
RGBrgb(126, 65, 194)
HSLhsl(268, 51%, 51%)
HSVhsv(268, 66%, 76%)
CMYKcmyk(35.1%, 66.5%, 0%, 23.9%)
CIE-LABlab(41.39, 51.15, -57.68)
CIE-LCHlch(41.39, 77.09, 311.57°)
OKLaboklab(51.71% 0.1012 -0.164)
OKLCHoklch(51.71% 0.193 301.7)
XYZxyz(20.2298, 12.1112, 52.3004)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41C2 #85C241
analogous
#4144C2 #7E41C2 #BE41C2
triadic
#7E41C2 #C27E41 #41C27E
tetradic
#7E41C2 #C24144 #85C241 #41C2BE
square
#7E41C2 #C24144 #85C241 #41C2BE
split-complementary
#7E41C2 #C2BE41 #44C241
monochromatic
#422167 #603096 #7E41C2 #9D6FD1 #BD9EE0

Accessibility & contrast

On white

6.14
#7E41C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E41C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41C2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41C2#FFFFFF#000000##FFFFFF
##7E41C21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0061BF
Tritanopia (blue-blind)
#705E7C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e41c2;
/* rgb */ color: rgb(126, 65, 194);
/* oklch */ color: oklch(51.7% 0.193 301.7);
Tailwind
colors: {
  custom: {
    50: '#a87ad5',
    500: '#7e41c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e41c2;
$custom-light: #a87ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41c2",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 268.372,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51714,
    "c": 0.19275,
    "h": 301.7
  },
  "luminance": 0.12111
}

Semantic roles & 50–950 ramp

primary
#7E41C2
secondary
#B1CC93
accent
#DB4D98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E41C2

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

Preview Lab → · Contrast checker → · Palette generator →

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