#7E41C4#7E41C4

#7E41C4 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.195 H 301.2°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7E41C4
RGBrgb(126, 65, 196)
HSLhsl(268, 53%, 51%)
HSVhsv(268, 67%, 77%)
CMYKcmyk(35.7%, 66.8%, 0%, 23.1%)
CIE-LABlab(41.53, 51.64, -58.61)
CIE-LCHlch(41.53, 78.12, 311.38°)
OKLaboklab(51.86% 0.101 -0.1668)
OKLCHoklch(51.86% 0.195 301.2)
XYZxyz(20.4559, 12.2016, 53.4913)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41C4 #87C441
analogous
#4145C4 #7E41C4 #BF41C4
triadic
#7E41C4 #C47E41 #41C47E
tetradic
#7E41C4 #C44145 #87C441 #41C4BF
square
#7E41C4 #C44145 #87C441 #41C4BF
split-complementary
#7E41C4 #C4BF41 #45C441
monochromatic
#43216A #602F98 #7E41C4 #9E70D3 #BD9EE1

Accessibility & contrast

On white

6.10
#7E41C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7E41C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41C4
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41C4#FFFFFF#000000##FFFFFF
##7E41C41.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#6F5F7D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e41c4;
/* rgb */ color: rgb(126, 65, 196);
/* oklch */ color: oklch(51.9% 0.195 301.2);
Tailwind
colors: {
  custom: {
    50: '#a97ad7',
    500: '#7e41c4',
    950: '#000000',
  },
}
SCSS
$custom: #7e41c4;
$custom-light: #a97ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41c4",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 196
  },
  "hsl": {
    "h": 267.939,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51861,
    "c": 0.19498,
    "h": 301.2
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

primary
#7E41C4
secondary
#B2CD93
accent
#DC4C99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E41C4

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

Preview Lab → · Contrast checker → · Palette generator →

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