#7A4DBE#7A4DBE

#7A4DBE is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.171 H 298.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#7A4DBE
RGBrgb(122, 77, 190)
HSLhsl(264, 47%, 52%)
HSVhsv(264, 59%, 75%)
CMYKcmyk(35.8%, 59.5%, 0%, 25.5%)
CIE-LABlab(43.01, 42.91, -52.76)
CIE-LCHlch(43.01, 68.01, 309.12°)
OKLaboklab(52.69% 0.0822 -0.1498)
OKLCHoklch(52.69% 0.171 298.7)
XYZxyz(19.9719, 13.1628, 50.1937)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DBE #91BE4D
analogous
#4D58BE #7A4DBE #B34DBE
triadic
#7A4DBE #BE7A4D #4DBE7A
tetradic
#7A4DBE #BE4D58 #91BE4D #4DBEB3
square
#7A4DBE #BE4D58 #91BE4D #4DBEB3
split-complementary
#7A4DBE #BEB34D #58BE4D
monochromatic
#41276A #5D3797 #7A4DBE #9B7ACE #BDA7DF

Accessibility & contrast

On white

5.78
#7A4DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7A4DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DBE
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DBE#FFFFFF#000000##FFFFFF
##7A4DBE1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0766C2
Deuteranopia (green-blind)
#2465BB
Tritanopia (blue-blind)
#6B657E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7a4dbe;
/* rgb */ color: rgb(122, 77, 190);
/* oklch */ color: oklch(52.7% 0.171 298.7);
Tailwind
colors: {
  custom: {
    50: '#a581d2',
    500: '#7a4dbe',
    950: '#000000',
  },
}
SCSS
$custom: #7a4dbe;
$custom-light: #a581d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4dbe",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 263.894,
    "s": 46.502,
    "l": 52.353
  },
  "oklch": {
    "l": 0.52694,
    "c": 0.17082,
    "h": 298.7
  },
  "luminance": 0.13163
}

Semantic roles & 50–950 ramp

primary
#7A4DBE
secondary
#B8CC9B
accent
#D652A1
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A4DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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