#7E4DC5#7E4DC5

#7E4DC5 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.6% C 0.180 H 299.0°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC5
RGBrgb(126, 77, 197)
HSLhsl(265, 51%, 54%)
HSVhsv(265, 61%, 77%)
CMYKcmyk(36%, 60.9%, 0%, 22.7%)
CIE-LABlab(43.91, 45.64, -55.36)
CIE-LCHlch(43.91, 71.75, 309.50°)
OKLaboklab(53.6% 0.0873 -0.1573)
OKLCHoklch(53.6% 0.18 299)
XYZxyz(21.3336, 13.7744, 54.3473)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC5 #94C54D
analogous
#4D58C5 #7E4DC5 #BA4DC5
triadic
#7E4DC5 #C57E4D #4DC57E
tetradic
#7E4DC5 #C54D58 #94C54D #4DC5BA
square
#7E4DC5 #C54D58 #94C54D #4DC5BA
split-complementary
#7E4DC5 #C5BA4D #58C54D
monochromatic
#452572 #6034A0 #7E4DC5 #9F7BD4 #C1A9E3

Accessibility & contrast

On white

5.59
#7E4DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7E4DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC5
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC5#FFFFFF#000000##FFFFFF
##7E4DC51.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068C9
Deuteranopia (green-blind)
#1E67C2
Tritanopia (blue-blind)
#6E6782
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4dc5;
/* rgb */ color: rgb(126, 77, 197);
/* oklch */ color: oklch(53.6% 0.180 299.0);
Tailwind
colors: {
  custom: {
    50: '#a881d7',
    500: '#7e4dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc5;
$custom-light: #a881d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc5",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 197
  },
  "hsl": {
    "h": 264.5,
    "s": 50.847,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53598,
    "c": 0.17986,
    "h": 299
  },
  "luminance": 0.13775
}

Semantic roles & 50–950 ramp

primary
#7E4DC5
secondary
#BCD19D
accent
#DA4DA1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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