#7E4FA0#7E4FA0

#7E4FA0 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.132 H 309.3°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#7E4FA0
RGBrgb(126, 79, 160)
HSLhsl(275, 34%, 47%)
HSVhsv(275, 51%, 63%)
CMYKcmyk(21.2%, 50.6%, 0%, 37.3%)
CIE-LABlab(42.10, 35.33, -36.49)
CIE-LCHlch(42.10, 50.79, 314.07°)
OKLaboklab(51.55% 0.0835 -0.102)
OKLCHoklch(51.55% 0.132 309.3)
XYZxyz(17.7441, 12.5659, 34.7416)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FA0 #71A04F
analogous
#564FA0 #7E4FA0 #A04F9A
triadic
#7E4FA0 #A07E4F #4FA07E
tetradic
#7E4FA0 #A0564F #71A04F #4F9AA0
square
#7E4FA0 #A0564F #71A04F #4F9AA0
split-complementary
#7E4FA0 #9AA04F #4FA056
monochromatic
#3D274E #5E3B77 #7E4FA0 #9C73BA #B99CCE

Accessibility & contrast

On white

5.98
#7E4FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7E4FA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FA0
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FA0#FFFFFF#000000##FFFFFF
##7E4FA01.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A61A3
Deuteranopia (green-blind)
#47649E
Tritanopia (blue-blind)
#7A5D70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e4fa0;
/* rgb */ color: rgb(126, 79, 160);
/* oklch */ color: oklch(51.6% 0.132 309.3);
Tailwind
colors: {
  custom: {
    50: '#a582bc',
    500: '#7e4fa0',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fa0;
$custom-light: #a582bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fa0",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 160
  },
  "hsl": {
    "h": 274.815,
    "s": 33.891,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51553,
    "c": 0.13182,
    "h": 309.3
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#7E4FA0
secondary
#A2BB90
accent
#CA5E8B
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E4FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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