#7E4CD4#7E4CD4

#7E4CD4 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.199 H 296.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7E4CD4
RGBrgb(126, 76, 212)
HSLhsl(262, 61%, 56%)
HSVhsv(262, 64%, 83%)
CMYKcmyk(40.6%, 64.2%, 0%, 16.9%)
CIE-LABlab(44.74, 50.07, -62.66)
CIE-LCHlch(44.74, 80.21, 308.63°)
OKLaboklab(54.53% 0.0873 -0.1787)
OKLCHoklch(54.53% 0.199 296)
XYZxyz(23.0692, 14.3575, 63.8304)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CD4 #A2D44C
analogous
#4C5ED4 #7E4CD4 #C24CD4
triadic
#7E4CD4 #D47E4C #4CD47E
tetradic
#7E4CD4 #D44C5E #A2D44C #4CD4C2
square
#7E4CD4 #D44C5E #A2D44C #4CD4C2
split-complementary
#7E4CD4 #D4C24C #5ED44C
monochromatic
#452086 #5F2CB7 #7E4CD4 #A27DE0 #C5AFEC

Accessibility & contrast

On white

5.42
#7E4CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#7E4CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CD4
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CD4#FFFFFF#000000##FFFFFF
##7E4CD41.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#686B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4cd4;
/* rgb */ color: rgb(126, 76, 212);
/* oklch */ color: oklch(54.5% 0.199 296.0);
Tailwind
colors: {
  custom: {
    50: '#a981e2',
    500: '#7e4cd4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cd4;
$custom-light: #a981e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cd4",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 262.059,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5453,
    "c": 0.19892,
    "h": 296
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#7E4CD4
secondary
#C5DAA2
accent
#E443A9
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100A15
muted
#7F7C84

Preview Lab

Preview with #7E4CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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