#7A4EAC#7A4EAC

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

Color values

HEX#7A4EAC
RGBrgb(122, 78, 172)
HSLhsl(268, 38%, 49%)
HSVhsv(268, 55%, 67%)
CMYKcmyk(29.1%, 54.7%, 0%, 32.5%)
CIE-LABlab(42.10, 37.73, -43.65)
CIE-LCHlch(42.10, 57.70, 310.84°)
OKLaboklab(51.67% 0.0806 -0.123)
OKLCHoklch(51.67% 0.147 303.2)
XYZxyz(18.1952, 12.5649, 40.4884)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4EAC #80AC4E
analogous
#4E51AC #7A4EAC #A94EAC
triadic
#7A4EAC #AC7A4E #4EAC7A
tetradic
#7A4EAC #AC4E51 #80AC4E #4EACA9
square
#7A4EAC #AC4E51 #80AC4E #4EACA9
split-complementary
#7A4EAC #ACA94E #51AC4E
monochromatic
#3E2858 #5C3B82 #7A4EAC #9976C1 #B9A0D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A4EAC#FFFFFF#000000##FFFFFF
##7A4EAC1.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)
#2C62AF
Deuteranopia (green-blind)
#3A63AA
Tritanopia (blue-blind)
#716075
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a4eac;
/* rgb */ color: rgb(122, 78, 172);
/* oklch */ color: oklch(51.7% 0.147 303.2);
Tailwind
colors: {
  custom: {
    50: '#a381c5',
    500: '#7a4eac',
    950: '#000000',
  },
}
SCSS
$custom: #7a4eac;
$custom-light: #a381c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4eac",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 172
  },
  "hsl": {
    "h": 268.085,
    "s": 37.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.51668,
    "c": 0.14709,
    "h": 303.2
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#7A4EAC
secondary
#ACC195
accent
#CE5A98
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7A4EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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