#7E4FD4#7E4FD4

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

Color values

HEX#7E4FD4
RGBrgb(126, 79, 212)
HSLhsl(261, 61%, 57%)
HSVhsv(261, 63%, 83%)
CMYKcmyk(40.6%, 62.7%, 0%, 16.9%)
CIE-LABlab(45.33, 48.48, -61.70)
CIE-LCHlch(45.33, 78.47, 308.16°)
OKLaboklab(54.96% 0.084 -0.1759)
OKLCHoklch(54.96% 0.195 295.5)
XYZxyz(23.2807, 14.7806, 63.9009)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FD4 #A5D44F
analogous
#4F63D4 #7E4FD4 #C14FD4
triadic
#7E4FD4 #D47E4F #4FD47E
tetradic
#7E4FD4 #D44F63 #A5D44F #4FD4C1
square
#7E4FD4 #D44F63 #A5D44F #4FD4C1
split-complementary
#7E4FD4 #D4C14F #63D44F
monochromatic
#452187 #5E2DB9 #7E4FD4 #A280E0 #C6B1EC

Accessibility & contrast

On white

5.31
#7E4FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E4FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FD4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FD4#FFFFFF#000000##FFFFFF
##7E4FD41.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#686D8A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e4fd4;
/* rgb */ color: rgb(126, 79, 212);
/* oklch */ color: oklch(55.0% 0.195 295.5);
Tailwind
colors: {
  custom: {
    50: '#a983e2',
    500: '#7e4fd4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fd4;
$custom-light: #a983e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fd4",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 212
  },
  "hsl": {
    "h": 261.203,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54958,
    "c": 0.19496,
    "h": 295.5
  },
  "luminance": 0.14781
}

Semantic roles & 50–950 ramp

primary
#7E4FD4
secondary
#C7DAA4
accent
#E444AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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