#7E4FD7#7E4FD7

#7E4FD7 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.2% C 0.199 H 295.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7E4FD7
RGBrgb(126, 79, 215)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 63%, 84%)
CMYKcmyk(41.4%, 63.3%, 0%, 15.7%)
CIE-LABlab(45.54, 49.27, -63.08)
CIE-LCHlch(45.54, 80.04, 307.99°)
OKLaboklab(55.18% 0.0838 -0.18)
OKLCHoklch(55.18% 0.199 295)
XYZxyz(23.6627, 14.9333, 65.9125)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FD7 #A8D74F
analogous
#4F64D7 #7E4FD7 #C24FD7
triadic
#7E4FD7 #D77E4F #4FD77E
tetradic
#7E4FD7 #D74F64 #A8D74F #4FD7C2
square
#7E4FD7 #D74F64 #A8D74F #4FD7C2
split-complementary
#7E4FD7 #D7C24F #64D74F
monochromatic
#45208C #5E2BBE #7E4FD7 #A381E2 #C7B3EE

Accessibility & contrast

On white

5.27
#7E4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7E4FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FD7
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FD7#FFFFFF#000000##FFFFFF
##7E4FD71.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#676E8C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e4fd7;
/* rgb */ color: rgb(126, 79, 215);
/* oklch */ color: oklch(55.2% 0.199 295.0);
Tailwind
colors: {
  custom: {
    50: '#a983e4',
    500: '#7e4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fd7;
$custom-light: #a983e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fd7",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 260.735,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55177,
    "c": 0.19852,
    "h": 295
  },
  "luminance": 0.14934
}

Semantic roles & 50–950 ramp

primary
#7E4FD7
secondary
#C9DCA6
accent
#E642AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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