#7E4CC0#7E4CC0

#7E4CC0 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.1% C 0.175 H 300.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7E4CC0
RGBrgb(126, 76, 192)
HSLhsl(266, 48%, 53%)
HSVhsv(266, 60%, 75%)
CMYKcmyk(34.4%, 60.4%, 0%, 24.7%)
CIE-LABlab(43.37, 44.90, -53.31)
CIE-LCHlch(43.37, 69.70, 310.11°)
OKLaboklab(53.11% 0.0887 -0.1512)
OKLCHoklch(53.11% 0.175 300.4)
XYZxyz(20.7008, 13.4101, 51.3568)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CC0 #8EC04C
analogous
#4C54C0 #7E4CC0 #B84CC0
triadic
#7E4CC0 #C07E4C #4CC07E
tetradic
#7E4CC0 #C04C54 #8EC04C #4CC0B8
square
#7E4CC0 #C04C54 #8EC04C #4CC0B8
split-complementary
#7E4CC0 #C0B84C #54C04C
monochromatic
#44266C #613699 #7E4CC0 #9F79D0 #BFA7E0

Accessibility & contrast

On white

5.70
#7E4CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7E4CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CC0
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CC0#FFFFFF#000000##FFFFFF
##7E4CC01.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#2566BD
Tritanopia (blue-blind)
#70647F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4cc0;
/* rgb */ color: rgb(126, 76, 192);
/* oklch */ color: oklch(53.1% 0.175 300.4);
Tailwind
colors: {
  custom: {
    50: '#a880d4',
    500: '#7e4cc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cc0;
$custom-light: #a880d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cc0",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 192
  },
  "hsl": {
    "h": 265.862,
    "s": 47.934,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53105,
    "c": 0.17532,
    "h": 300.4
  },
  "luminance": 0.1341
}

Semantic roles & 50–950 ramp

primary
#7E4CC0
secondary
#B7CD9B
accent
#D8509D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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