#7E4CC8#7E4CC8

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

Color values

HEX#7E4CC8
RGBrgb(126, 76, 200)
HSLhsl(264, 53%, 54%)
HSVhsv(264, 62%, 78%)
CMYKcmyk(37%, 62%, 0%, 21.6%)
CIE-LABlab(43.91, 46.95, -57.10)
CIE-LCHlch(43.91, 73.92, 309.43°)
OKLaboklab(53.66% 0.0883 -0.1624)
OKLCHoklch(53.66% 0.185 298.5)
XYZxyz(21.6113, 13.7744, 56.1525)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CC8 #96C84C
analogous
#4C58C8 #7E4CC8 #BC4CC8
triadic
#7E4CC8 #C87E4C #4CC87E
tetradic
#7E4CC8 #C84C58 #96C84C #4CC8BC
square
#7E4CC8 #C84C58 #96C84C #4CC8BC
split-complementary
#7E4CC8 #C8BC4C #58C84C
monochromatic
#452475 #6032A4 #7E4CC8 #A07BD6 #C1AAE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E4CC8#FFFFFF#000000##FFFFFF
##7E4CC81.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)
#0068CC
Deuteranopia (green-blind)
#1467C5
Tritanopia (blue-blind)
#6D6783
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4cc8;
/* rgb */ color: rgb(126, 76, 200);
/* oklch */ color: oklch(53.7% 0.185 298.5);
Tailwind
colors: {
  custom: {
    50: '#a880d9',
    500: '#7e4cc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cc8;
$custom-light: #a880d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cc8",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 200
  },
  "hsl": {
    "h": 264.194,
    "s": 52.991,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53662,
    "c": 0.18481,
    "h": 298.5
  },
  "luminance": 0.13775
}

Semantic roles & 50–950 ramp

primary
#7E4CC8
secondary
#BDD29E
accent
#DC4BA2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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