#7E4FA4#7E4FA4

#7E4FA4 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.137 H 307.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#7E4FA4
RGBrgb(126, 79, 164)
HSLhsl(273, 35%, 48%)
HSVhsv(273, 52%, 64%)
CMYKcmyk(23.2%, 51.8%, 0%, 35.7%)
CIE-LABlab(42.32, 36.28, -38.53)
CIE-LCHlch(42.32, 52.92, 313.28°)
OKLaboklab(51.79% 0.0839 -0.1079)
OKLCHoklch(51.79% 0.137 307.9)
XYZxyz(18.0997, 12.7081, 36.6142)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FA4 #75A44F
analogous
#534FA4 #7E4FA4 #A44FA0
triadic
#7E4FA4 #A47E4F #4FA47E
tetradic
#7E4FA4 #A4534F #75A44F #4FA0A4
square
#7E4FA4 #A4534F #75A44F #4FA0A4
split-complementary
#7E4FA4 #A0A44F #4FA453
monochromatic
#3F2751 #5E3B7B #7E4FA4 #9C74BC #B99DD0

Accessibility & contrast

On white

5.93
#7E4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7E4FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FA4
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FA4#FFFFFF#000000##FFFFFF
##7E4FA41.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A7
Deuteranopia (green-blind)
#4564A2
Tritanopia (blue-blind)
#795E72
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4fa4;
/* rgb */ color: rgb(126, 79, 164);
/* oklch */ color: oklch(51.8% 0.137 307.9);
Tailwind
colors: {
  custom: {
    50: '#a582bf',
    500: '#7e4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fa4;
$custom-light: #a582bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fa4",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 273.176,
    "s": 34.979,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51786,
    "c": 0.13671,
    "h": 307.9
  },
  "luminance": 0.12708
}

Semantic roles & 50–950 ramp

primary
#7E4FA4
secondary
#A5BD92
accent
#CB5D8E
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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