#7E4FD2#7E4FD2

#7E4FD2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.8% C 0.193 H 295.9°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7E4FD2
RGBrgb(126, 79, 210)
HSLhsl(262, 59%, 57%)
HSVhsv(262, 62%, 82%)
CMYKcmyk(40%, 62.4%, 0%, 17.6%)
CIE-LABlab(45.19, 47.95, -60.78)
CIE-LCHlch(45.19, 77.42, 308.27°)
OKLaboklab(54.81% 0.0842 -0.1732)
OKLCHoklch(54.81% 0.193 295.9)
XYZxyz(23.0300, 14.6803, 62.5805)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FD2 #A3D24F
analogous
#4F62D2 #7E4FD2 #C04FD2
triadic
#7E4FD2 #D27E4F #4FD27E
tetradic
#7E4FD2 #D24F62 #A3D24F #4FD2C0
square
#7E4FD2 #D24F62 #A3D24F #4FD2C0
split-complementary
#7E4FD2 #D2C04F #62D24F
monochromatic
#452285 #5F2EB5 #7E4FD2 #A280DE #C5B0EB

Accessibility & contrast

On white

5.34
#7E4FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7E4FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FD2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FD2#FFFFFF#000000##FFFFFF
##7E4FD21.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#696D89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4fd2;
/* rgb */ color: rgb(126, 79, 210);
/* oklch */ color: oklch(54.8% 0.193 295.9);
Tailwind
colors: {
  custom: {
    50: '#a983e1',
    500: '#7e4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fd2;
$custom-light: #a983e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fd2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 261.527,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54813,
    "c": 0.19259,
    "h": 295.9
  },
  "luminance": 0.14681
}

Semantic roles & 50–950 ramp

primary
#7E4FD2
secondary
#C6D9A4
accent
#E245AA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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