#7E4FC5#7E4FC5

#7E4FC5 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.9% C 0.177 H 298.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7E4FC5
RGBrgb(126, 79, 197)
HSLhsl(264, 50%, 54%)
HSVhsv(264, 60%, 77%)
CMYKcmyk(36%, 59.9%, 0%, 22.7%)
CIE-LABlab(44.32, 44.55, -54.70)
CIE-LCHlch(44.32, 70.55, 309.16°)
OKLaboklab(53.9% 0.0849 -0.1553)
OKLCHoklch(53.9% 0.177 298.7)
XYZxyz(21.4757, 14.0586, 54.3946)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FC5 #96C54F
analogous
#4F5BC5 #7E4FC5 #B94FC5
triadic
#7E4FC5 #C57E4F #4FC57E
tetradic
#7E4FC5 #C54F5B #96C54F #4FC5B9
square
#7E4FC5 #C54F5B #96C54F #4FC5B9
split-complementary
#7E4FC5 #C5B94F #5BC54F
monochromatic
#452674 #6035A2 #7E4FC5 #A07DD4 #C1ABE3

Accessibility & contrast

On white

5.51
#7E4FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7E4FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FC5
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FC5#FFFFFF#000000##FFFFFF
##7E4FC51.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069C9
Deuteranopia (green-blind)
#2368C2
Tritanopia (blue-blind)
#6E6882
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4fc5;
/* rgb */ color: rgb(126, 79, 197);
/* oklch */ color: oklch(53.9% 0.177 298.7);
Tailwind
colors: {
  custom: {
    50: '#a882d7',
    500: '#7e4fc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fc5;
$custom-light: #a882d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fc5",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 263.898,
    "s": 50.427,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53896,
    "c": 0.17701,
    "h": 298.7
  },
  "luminance": 0.14059
}

Semantic roles & 50–950 ramp

primary
#7E4FC5
secondary
#BDD19F
accent
#DA4EA2
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E4FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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