#7E4CD6#7E4CD6

#7E4CD6 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.7% C 0.201 H 295.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E4CD6
RGBrgb(126, 76, 214)
HSLhsl(262, 63%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(41.1%, 64.5%, 0%, 16.1%)
CIE-LABlab(44.88, 50.60, -63.57)
CIE-LCHlch(44.88, 81.25, 308.52°)
OKLaboklab(54.68% 0.0871 -0.1814)
OKLCHoklch(54.68% 0.201 295.7)
XYZxyz(23.3230, 14.4590, 65.1673)
Luminance0.1446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CD6 #A4D64C
analogous
#4C5FD6 #7E4CD6 #C34CD6
triadic
#7E4CD6 #D67E4C #4CD67E
tetradic
#7E4CD6 #D64C5F #A4D64C #4CD6C3
square
#7E4CD6 #D64C5F #A4D64C #4CD6C3
split-complementary
#7E4CD6 #D6C34C #5FD64C
monochromatic
#451F88 #5F2BBA #7E4CD6 #A27EE1 #C6B0ED

Accessibility & contrast

On white

5.40
#7E4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CD6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CD6#FFFFFF#000000##FFFFFF
##7E4CD61.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#0068D3
Tritanopia (blue-blind)
#676C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4cd6;
/* rgb */ color: rgb(126, 76, 214);
/* oklch */ color: oklch(54.7% 0.201 295.7);
Tailwind
colors: {
  custom: {
    50: '#aa81e3',
    500: '#7e4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cd6;
$custom-light: #aa81e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cd6",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 261.739,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54678,
    "c": 0.20125,
    "h": 295.7
  },
  "luminance": 0.1446
}

Semantic roles & 50–950 ramp

primary
#7E4CD6
secondary
#C7DBA3
accent
#E642AA
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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