#7E4FD8#7E4FD8

#7E4FD8 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.3% C 0.200 H 294.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7E4FD8
RGBrgb(126, 79, 216)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(41.7%, 63.4%, 0%, 15.3%)
CIE-LABlab(45.61, 49.54, -63.54)
CIE-LCHlch(45.61, 80.56, 307.94°)
OKLaboklab(55.25% 0.0837 -0.1813)
OKLCHoklch(55.25% 0.2 294.8)
XYZxyz(23.7915, 14.9849, 66.5913)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FD8 #A9D84F
analogous
#4F64D8 #7E4FD8 #C24FD8
triadic
#7E4FD8 #D87E4F #4FD87E
tetradic
#7E4FD8 #D84F64 #A9D84F #4FD8C2
square
#7E4FD8 #D84F64 #A9D84F #4FD8C2
split-complementary
#7E4FD8 #D8C24F #64D84F
monochromatic
#451F8D #5E2ABF #7E4FD8 #A381E3 #C7B3EE

Accessibility & contrast

On white

5.25
#7E4FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7E4FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FD8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FD8#FFFFFF#000000##FFFFFF
##7E4FD81.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#666F8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4fd8;
/* rgb */ color: rgb(126, 79, 216);
/* oklch */ color: oklch(55.3% 0.200 294.8);
Tailwind
colors: {
  custom: {
    50: '#aa83e5',
    500: '#7e4fd8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fd8;
$custom-light: #aa83e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fd8",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 216
  },
  "hsl": {
    "h": 260.584,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.5525,
    "c": 0.1997,
    "h": 294.8
  },
  "luminance": 0.14985
}

Semantic roles & 50–950 ramp

primary
#7E4FD8
secondary
#CADDA6
accent
#E741AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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