#7A1978#7A1978

#7A1978 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.169 H 329.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7A1978
RGBrgb(122, 25, 120)
HSLhsl(301, 66%, 29%)
HSVhsv(301, 80%, 48%)
CMYKcmyk(0%, 79.5%, 1.6%, 52.2%)
CIE-LABlab(29.89, 51.39, -31.34)
CIE-LCHlch(29.89, 60.19, 328.62°)
OKLaboklab(41.79% 0.1445 -0.0868)
OKLCHoklch(41.79% 0.169 329)
XYZxyz(11.7637, 6.1898, 18.3408)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1978 #197A1B
analogous
#4C197A #7A1978 #7A1948
triadic
#7A1978 #787A19 #19787A
tetradic
#7A1978 #7A4C19 #197A1B #19487A
square
#7A1978 #7A4C19 #197A1B #19487A
split-complementary
#7A1978 #487A19 #197A4C
monochromatic
#190519 #470F46 #7A1978 #AD23AA #D637D3

Accessibility & contrast

On white

9.38
#7A1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1978
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1978#FFFFFF#000000##FFFFFF
##7A19781.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053E7B
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#7E2848
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1978;
/* rgb */ color: rgb(122, 25, 120);
/* oklch */ color: oklch(41.8% 0.169 329.0);
Tailwind
colors: {
  custom: {
    50: '#a4629f',
    500: '#7a1978',
    950: '#000000',
  },
}
SCSS
$custom: #7a1978;
$custom-light: #a4629f;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1978",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 301.237,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41793,
    "c": 0.16851,
    "h": 329
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#7A1978
secondary
#40AF43
accent
#E9423F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1978

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

Preview Lab → · Contrast checker → · Palette generator →

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