#7A4E97#7A4E97

#7A4E97 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.4% C 0.121 H 310.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#7A4E97
RGBrgb(122, 78, 151)
HSLhsl(276, 32%, 45%)
HSVhsv(276, 48%, 59%)
CMYKcmyk(19.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(40.93, 32.60, -32.98)
CIE-LCHlch(40.93, 46.38, 314.67°)
OKLaboklab(50.42% 0.0786 -0.0919)
OKLCHoklch(50.42% 0.121 310.5)
XYZxyz(16.3353, 11.8210, 30.6933)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4E97 #6B974E
analogous
#554E97 #7A4E97 #974E90
triadic
#7A4E97 #977A4E #4E977A
tetradic
#7A4E97 #97554E #6B974E #4E9097
square
#7A4E97 #97554E #6B974E #4E9097
split-complementary
#7A4E97 #90974E #4E9755
monochromatic
#392446 #59396F #7A4E97 #986EB4 #B596C9

Accessibility & contrast

On white

6.24
#7A4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7A4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4E97
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4E97#FFFFFF#000000##FFFFFF
##7A4E971.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5E9A
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#775A6B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a4e97;
/* rgb */ color: rgb(122, 78, 151);
/* oklch */ color: oklch(50.4% 0.121 310.5);
Tailwind
colors: {
  custom: {
    50: '#a281b6',
    500: '#7a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #7a4e97;
$custom-light: #a281b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4e97",
  "rgb": {
    "r": 122,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 276.164,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5042,
    "c": 0.12095,
    "h": 310.5
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#7A4E97
secondary
#9CB68B
accent
#C86089
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #7A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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