#7E4DC0#7E4DC0

#7E4DC0 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.174 H 300.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC0
RGBrgb(126, 77, 192)
HSLhsl(266, 48%, 53%)
HSVhsv(266, 60%, 75%)
CMYKcmyk(34.4%, 59.9%, 0%, 24.7%)
CIE-LABlab(43.58, 44.36, -52.98)
CIE-LCHlch(43.58, 69.10, 309.94°)
OKLaboklab(53.25% 0.0874 -0.1503)
OKLCHoklch(53.25% 0.174 300.2)
XYZxyz(20.7702, 13.5490, 51.3799)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC0 #8FC04D
analogous
#4D55C0 #7E4DC0 #B74DC0
triadic
#7E4DC0 #C07E4D #4DC07E
tetradic
#7E4DC0 #C04D55 #8FC04D #4DC0B7
square
#7E4DC0 #C04D55 #8FC04D #4DC0B7
split-complementary
#7E4DC0 #C0B74D #55C04D
monochromatic
#44266C #613699 #7E4DC0 #9F7AD0 #C0A7E0

Accessibility & contrast

On white

5.66
#7E4DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7E4DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC0
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC0#FFFFFF#000000##FFFFFF
##7E4DC01.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0667C4
Deuteranopia (green-blind)
#2766BD
Tritanopia (blue-blind)
#70657F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4dc0;
/* rgb */ color: rgb(126, 77, 192);
/* oklch */ color: oklch(53.3% 0.174 300.2);
Tailwind
colors: {
  custom: {
    50: '#a781d4',
    500: '#7e4dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc0;
$custom-light: #a781d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc0",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 192
  },
  "hsl": {
    "h": 265.565,
    "s": 47.718,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53254,
    "c": 0.17388,
    "h": 300.2
  },
  "luminance": 0.13549
}

Semantic roles & 50–950 ramp

primary
#7E4DC0
secondary
#B8CD9B
accent
#D7509E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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