#7E4FD5#7E4FD5

#7E4FD5 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.196 H 295.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7E4FD5
RGBrgb(126, 79, 213)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 63%, 84%)
CMYKcmyk(40.8%, 62.9%, 0%, 16.5%)
CIE-LABlab(45.40, 48.74, -62.16)
CIE-LCHlch(45.40, 78.99, 308.10°)
OKLaboklab(55.03% 0.084 -0.1773)
OKLCHoklch(55.03% 0.196 295.3)
XYZxyz(23.4072, 14.8312, 64.5673)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FD5 #A6D54F
analogous
#4F63D5 #7E4FD5 #C14FD5
triadic
#7E4FD5 #D57E4F #4FD57E
tetradic
#7E4FD5 #D54F63 #A6D54F #4FD5C1
square
#7E4FD5 #D54F63 #A6D54F #4FD5C1
split-complementary
#7E4FD5 #D5C14F #63D54F
monochromatic
#452189 #5E2CBA #7E4FD5 #A280E1 #C6B2ED

Accessibility & contrast

On white

5.29
#7E4FD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7E4FD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FD5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FD5#FFFFFF#000000##FFFFFF
##7E4FD51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#0069D2
Tritanopia (blue-blind)
#676E8B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4fd5;
/* rgb */ color: rgb(126, 79, 213);
/* oklch */ color: oklch(55.0% 0.196 295.3);
Tailwind
colors: {
  custom: {
    50: '#a983e3',
    500: '#7e4fd5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fd5;
$custom-light: #a983e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fd5",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 213
  },
  "hsl": {
    "h": 261.045,
    "s": 61.468,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.19615,
    "h": 295.3
  },
  "luminance": 0.14832
}

Semantic roles & 50–950 ramp

primary
#7E4FD5
secondary
#C8DBA5
accent
#E543AC
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7E4FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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