#7E41C8#7E41C8

#7E41C8 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.199 H 300.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7E41C8
RGBrgb(126, 65, 200)
HSLhsl(267, 55%, 52%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(37%, 67.5%, 0%, 21.6%)
CIE-LABlab(41.82, 52.63, -60.47)
CIE-LCHlch(41.82, 80.17, 311.04°)
OKLaboklab(52.16% 0.1005 -0.1723)
OKLCHoklch(52.16% 0.199 300.3)
XYZxyz(20.9172, 12.3862, 55.9211)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E41C8 #8BC841
analogous
#4148C8 #7E41C8 #C141C8
triadic
#7E41C8 #C87E41 #41C87E
tetradic
#7E41C8 #C84148 #8BC841 #41C8C1
square
#7E41C8 #C84148 #8BC841 #41C8C1
split-complementary
#7E41C8 #C8C141 #48C841
monochromatic
#44206F #602E9E #7E41C8 #9E70D6 #BEA0E3

Accessibility & contrast

On white

6.04
#7E41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E41C8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E41C8#FFFFFF#000000##FFFFFF
##7E41C81.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#6E607F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e41c8;
/* rgb */ color: rgb(126, 65, 200);
/* oklch */ color: oklch(52.2% 0.199 300.3);
Tailwind
colors: {
  custom: {
    50: '#a97ada',
    500: '#7e41c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e41c8;
$custom-light: #a97ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7e41c8",
  "rgb": {
    "r": 126,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 267.111,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52159,
    "c": 0.19941,
    "h": 300.3
  },
  "luminance": 0.12386
}

Semantic roles & 50–950 ramp

primary
#7E41C8
secondary
#B5D095
accent
#DE499B
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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