#7E4CC2#7E4CC2

#7E4CC2 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.2% C 0.178 H 299.9°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#7E4CC2
RGBrgb(126, 76, 194)
HSLhsl(265, 49%, 53%)
HSVhsv(265, 61%, 76%)
CMYKcmyk(35.1%, 60.8%, 0%, 23.9%)
CIE-LABlab(43.51, 45.41, -54.26)
CIE-LCHlch(43.51, 70.76, 309.93°)
OKLaboklab(53.24% 0.0886 -0.154)
OKLCHoklch(53.24% 0.178 299.9)
XYZxyz(20.9239, 13.4994, 52.5318)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CC2 #90C24C
analogous
#4C55C2 #7E4CC2 #B94CC2
triadic
#7E4CC2 #C27E4C #4CC27E
tetradic
#7E4CC2 #C24C55 #90C24C #4CC2B9
square
#7E4CC2 #C24C55 #90C24C #4CC2B9
split-complementary
#7E4CC2 #C2B94C #55C24C
monochromatic
#44266E #61359C #7E4CC2 #9F7AD2 #C0A7E1

Accessibility & contrast

On white

5.68
#7E4CC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7E4CC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CC2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CC2#FFFFFF#000000##FFFFFF
##7E4CC21.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2266BF
Tritanopia (blue-blind)
#6F6580
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4cc2;
/* rgb */ color: rgb(126, 76, 194);
/* oklch */ color: oklch(53.2% 0.178 299.9);
Tailwind
colors: {
  custom: {
    50: '#a880d5',
    500: '#7e4cc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cc2;
$custom-light: #a880d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cc2",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 194
  },
  "hsl": {
    "h": 265.424,
    "s": 49.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53243,
    "c": 0.1777,
    "h": 299.9
  },
  "luminance": 0.135
}

Semantic roles & 50–950 ramp

primary
#7E4CC2
secondary
#B9CE9B
accent
#D94F9E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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