#7A4DC6#7A4DC6

#7A4DC6 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.181 H 297.0°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#7A4DC6
RGBrgb(122, 77, 198)
HSLhsl(262, 51%, 54%)
HSVhsv(262, 61%, 78%)
CMYKcmyk(38.4%, 61.1%, 0%, 22.4%)
CIE-LABlab(43.54, 45.01, -56.55)
CIE-LCHlch(43.54, 72.28, 308.52°)
OKLaboklab(53.25% 0.0819 -0.1609)
OKLCHoklch(53.25% 0.181 297)
XYZxyz(20.8704, 13.5222, 54.9256)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A4DC6 #99C64D
analogous
#4D5DC6 #7A4DC6 #B74DC6
triadic
#7A4DC6 #C67A4D #4DC67A
tetradic
#7A4DC6 #C64D5D #99C64D #4DC6B7
square
#7A4DC6 #C64D5D #99C64D #4DC6B7
split-complementary
#7A4DC6 #C6B74D #5DC64D
monochromatic
#422574 #5D34A2 #7A4DC6 #9D7BD5 #BFAAE4

Accessibility & contrast

On white

5.67
#7A4DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#7A4DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A4DC6
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A4DC6#FFFFFF#000000##FFFFFF
##7A4DC61.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#1365C3
Tritanopia (blue-blind)
#686882
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7a4dc6;
/* rgb */ color: rgb(122, 77, 198);
/* oklch */ color: oklch(53.3% 0.181 297.0);
Tailwind
colors: {
  custom: {
    50: '#a581d8',
    500: '#7a4dc6',
    950: '#000000',
  },
}
SCSS
$custom: #7a4dc6;
$custom-light: #a581d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a4dc6",
  "rgb": {
    "r": 122,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 262.314,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53252,
    "c": 0.18054,
    "h": 297
  },
  "luminance": 0.13523
}

Semantic roles & 50–950 ramp

primary
#7A4DC6
secondary
#BED19E
accent
#DB4DA6
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A4DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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