#7A1778#7A1778

#7A1778 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.170 H 329.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#7A1778
RGBrgb(122, 23, 120)
HSLhsl(301, 68%, 28%)
HSVhsv(301, 81%, 48%)
CMYKcmyk(0%, 81.1%, 1.6%, 52.2%)
CIE-LABlab(29.68, 51.98, -31.67)
CIE-LCHlch(29.68, 60.87, 328.65°)
OKLaboklab(41.65% 0.1461 -0.0877)
OKLCHoklch(41.65% 0.17 329)
XYZxyz(11.7225, 6.1073, 18.3271)
Luminance0.0611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1778 #177A19
analogous
#4A177A #7A1778 #7A1746
triadic
#7A1778 #787A17 #17787A
tetradic
#7A1778 #7A4A17 #177A19 #17467A
square
#7A1778 #7A4A17 #177A19 #17467A
split-complementary
#7A1778 #467A17 #177A4A
monochromatic
#1A0519 #470D45 #7A1778 #AD21AB #D933D5

Accessibility & contrast

On white

9.45
#7A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7A1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1778
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1778#FFFFFF#000000##FFFFFF
##7A17781.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013E7B
Deuteranopia (green-blind)
#354A76
Tritanopia (blue-blind)
#7E2748
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1778;
/* rgb */ color: rgb(122, 23, 120);
/* oklch */ color: oklch(41.6% 0.170 329.0);
Tailwind
colors: {
  custom: {
    50: '#a4629f',
    500: '#7a1778',
    950: '#000000',
  },
}
SCSS
$custom: #7a1778;
$custom-light: #a4629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1778",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 301.212,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41647,
    "c": 0.17043,
    "h": 329
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#7A1778
secondary
#3EAF40
accent
#EB403D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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