#7E4FC2#7E4FC2

#7E4FC2 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.7% C 0.173 H 299.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7E4FC2
RGBrgb(126, 79, 194)
HSLhsl(265, 49%, 54%)
HSVhsv(265, 59%, 76%)
CMYKcmyk(35.1%, 59.3%, 0%, 23.9%)
CIE-LABlab(44.12, 43.78, -53.27)
CIE-LCHlch(44.12, 68.95, 309.41°)
OKLaboklab(53.69% 0.085 -0.1511)
OKLCHoklch(53.69% 0.173 299.3)
XYZxyz(21.1354, 13.9224, 52.6023)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FC2 #93C24F
analogous
#4F59C2 #7E4FC2 #B74FC2
triadic
#7E4FC2 #C27E4F #4FC27E
tetradic
#7E4FC2 #C24F59 #93C24F #4FC2B7
square
#7E4FC2 #C24F59 #93C24F #4FC2B7
split-complementary
#7E4FC2 #C2B74F #59C24F
monochromatic
#452770 #61379D #7E4FC2 #9F7CD2 #C1AAE2

Accessibility & contrast

On white

5.55
#7E4FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7E4FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FC2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FC2#FFFFFF#000000##FFFFFF
##7E4FC21.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C68C6
Deuteranopia (green-blind)
#2867BF
Tritanopia (blue-blind)
#6F6781
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4fc2;
/* rgb */ color: rgb(126, 79, 194);
/* oklch */ color: oklch(53.7% 0.173 299.3);
Tailwind
colors: {
  custom: {
    50: '#a882d5',
    500: '#7e4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fc2;
$custom-light: #a882d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fc2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 264.522,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53691,
    "c": 0.17338,
    "h": 299.3
  },
  "luminance": 0.13923
}

Semantic roles & 50–950 ramp

primary
#7E4FC2
secondary
#BBCF9E
accent
#D850A0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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