#7E41C3#7E41C3

#7E41C3 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.194 H 301.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7E41C3
RGBrgb(126, 65, 195)
HSLhsl(268, 52%, 51%)
HSVhsv(268, 67%, 76%)
CMYKcmyk(35.4%, 66.7%, 0%, 23.5%)
CIE-LABlab(41.46, 51.40, -58.15)
CIE-LCHlch(41.46, 77.61, 311.47°)
OKLaboklab(51.79% 0.1011 -0.1654)
OKLCHoklch(51.79% 0.194 301.4)
XYZxyz(20.3424, 12.1562, 52.8939)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41C3 #86C341
analogous
#4145C3 #7E41C3 #BF41C3
triadic
#7E41C3 #C37E41 #41C37E
tetradic
#7E41C3 #C34145 #86C341 #41C3BF
square
#7E41C3 #C34145 #86C341 #41C3BF
split-complementary
#7E41C3 #C3BF41 #45C341
monochromatic
#432169 #603097 #7E41C3 #9E70D2 #BD9EE0

Accessibility & contrast

On white

6.12
#7E41C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7E41C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41C3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41C3#FFFFFF#000000##FFFFFF
##7E41C31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e41c3;
/* rgb */ color: rgb(126, 65, 195);
/* oklch */ color: oklch(51.8% 0.194 301.4);
Tailwind
colors: {
  custom: {
    50: '#a87ad6',
    500: '#7e41c3',
    950: '#000000',
  },
}
SCSS
$custom: #7e41c3;
$custom-light: #a87ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41c3",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 195
  },
  "hsl": {
    "h": 268.154,
    "s": 52,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51787,
    "c": 0.19387,
    "h": 301.4
  },
  "luminance": 0.12156
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E41C3

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

Preview Lab → · Contrast checker → · Palette generator →

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