#7E4FC7#7E4FC7

#7E4FC7 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.179 H 298.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7E4FC7
RGBrgb(126, 79, 199)
HSLhsl(264, 52%, 55%)
HSVhsv(264, 60%, 78%)
CMYKcmyk(36.7%, 60.3%, 0%, 22%)
CIE-LABlab(44.45, 45.07, -55.65)
CIE-LCHlch(44.45, 71.61, 309.01°)
OKLaboklab(54.04% 0.0848 -0.1581)
OKLCHoklch(54.04% 0.179 298.2)
XYZxyz(21.7064, 14.1508, 55.6095)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FC7 #98C74F
analogous
#4F5CC7 #7E4FC7 #BA4FC7
triadic
#7E4FC7 #C77E4F #4FC77E
tetradic
#7E4FC7 #C74F5C #98C74F #4FC7BA
square
#7E4FC7 #C74F5C #98C74F #4FC7BA
split-complementary
#7E4FC7 #C7BA4F #5CC74F
monochromatic
#452676 #6034A4 #7E4FC7 #A07DD6 #C2ACE5

Accessibility & contrast

On white

5.48
#7E4FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7E4FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FC7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FC7#FFFFFF#000000##FFFFFF
##7E4FC71.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#1F68C4
Tritanopia (blue-blind)
#6D6983
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4fc7;
/* rgb */ color: rgb(126, 79, 199);
/* oklch */ color: oklch(54.0% 0.179 298.2);
Tailwind
colors: {
  custom: {
    50: '#a882d9',
    500: '#7e4fc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fc7;
$custom-light: #a882d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fc7",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 263.5,
    "s": 51.724,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54035,
    "c": 0.17942,
    "h": 298.2
  },
  "luminance": 0.14151
}

Semantic roles & 50–950 ramp

primary
#7E4FC7
secondary
#BED2A0
accent
#DB4DA3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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