#7E4CC4#7E4CC4

#7E4CC4 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.180 H 299.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7E4CC4
RGBrgb(126, 76, 196)
HSLhsl(265, 50%, 53%)
HSVhsv(265, 61%, 77%)
CMYKcmyk(35.7%, 61.2%, 0%, 23.1%)
CIE-LABlab(43.64, 45.93, -55.21)
CIE-LCHlch(43.64, 71.82, 309.75°)
OKLaboklab(53.38% 0.0885 -0.1568)
OKLCHoklch(53.38% 0.18 299.4)
XYZxyz(21.1500, 13.5898, 53.7227)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CC4 #92C44C
analogous
#4C56C4 #7E4CC4 #BA4CC4
triadic
#7E4CC4 #C47E4C #4CC47E
tetradic
#7E4CC4 #C44C56 #92C44C #4CC4BA
square
#7E4CC4 #C44C56 #92C44C #4CC4BA
split-complementary
#7E4CC4 #C4BA4C #56C44C
monochromatic
#452571 #61349F #7E4CC4 #9F7AD3 #C0A8E2

Accessibility & contrast

On white

5.65
#7E4CC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#7E4CC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CC4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CC4#FFFFFF#000000##FFFFFF
##7E4CC41.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C8
Deuteranopia (green-blind)
#1E66C1
Tritanopia (blue-blind)
#6F6681
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4cc4;
/* rgb */ color: rgb(126, 76, 196);
/* oklch */ color: oklch(53.4% 0.180 299.4);
Tailwind
colors: {
  custom: {
    50: '#a880d7',
    500: '#7e4cc4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cc4;
$custom-light: #a880d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cc4",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 196
  },
  "hsl": {
    "h": 265,
    "s": 50.42,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53381,
    "c": 0.18008,
    "h": 299.4
  },
  "luminance": 0.1359
}

Semantic roles & 50–950 ramp

primary
#7E4CC4
secondary
#BAD09C
accent
#DA4EA0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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