#7E41C5#7E41C5

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

Color values

HEX#7E41C5
RGBrgb(126, 65, 197)
HSLhsl(268, 53%, 51%)
HSVhsv(268, 67%, 77%)
CMYKcmyk(36%, 67%, 0%, 22.7%)
CIE-LABlab(41.61, 51.89, -59.08)
CIE-LCHlch(41.61, 78.63, 311.29°)
OKLaboklab(51.93% 0.1009 -0.1682)
OKLCHoklch(51.93% 0.196 301)
XYZxyz(20.5701, 12.2473, 54.0927)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41C5 #88C541
analogous
#4146C5 #7E41C5 #C041C5
triadic
#7E41C5 #C57E41 #41C57E
tetradic
#7E41C5 #C54146 #88C541 #41C5C0
square
#7E41C5 #C54146 #88C541 #41C5C0
split-complementary
#7E41C5 #C5C041 #46C541
monochromatic
#43216B #602F9A #7E41C5 #9E70D3 #BE9FE2

Accessibility & contrast

On white

6.09
#7E41C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E41C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41C5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41C5#FFFFFF#000000##FFFFFF
##7E41C51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#6F5F7E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e41c5;
/* rgb */ color: rgb(126, 65, 197);
/* oklch */ color: oklch(51.9% 0.196 301.0);
Tailwind
colors: {
  custom: {
    50: '#a97ad7',
    500: '#7e41c5',
    950: '#000000',
  },
}
SCSS
$custom: #7e41c5;
$custom-light: #a97ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41c5",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 197
  },
  "hsl": {
    "h": 267.727,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.19609,
    "h": 301
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#7E41C5
secondary
#B3CE94
accent
#DD4B99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E41C5

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

Preview Lab → · Contrast checker → · Palette generator →

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