#7A1780#7A1780

#7A1780 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.177 H 325.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7A1780
RGBrgb(122, 23, 128)
HSLhsl(297, 70%, 30%)
HSVhsv(297, 82%, 50%)
CMYKcmyk(4.7%, 82%, 0%, 49.8%)
CIE-LABlab(30.18, 53.36, -35.92)
CIE-LCHlch(30.18, 64.32, 326.06°)
OKLaboklab(42.16% 0.1457 -0.1001)
OKLCHoklch(42.16% 0.177 325.5)
XYZxyz(12.2284, 6.3097, 20.9917)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1780 #1D8017
analogous
#451780 #7A1780 #801752
triadic
#7A1780 #807A17 #17807A
tetradic
#7A1780 #804517 #1D8017 #175280
square
#7A1780 #804517 #1D8017 #175280
split-complementary
#7A1780 #528017 #178045
monochromatic
#19051A #490E4C #7A1780 #AB20B4 #D236DB

Accessibility & contrast

On white

9.28
#7A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7A1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1780
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1780#FFFFFF#000000##FFFFFF
##7A17801.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F83
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7D2B4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1780;
/* rgb */ color: rgb(122, 23, 128);
/* oklch */ color: oklch(42.2% 0.177 325.5);
Tailwind
colors: {
  custom: {
    50: '#a462a5',
    500: '#7a1780',
    950: '#000000',
  },
}
SCSS
$custom: #7a1780;
$custom-light: #a462a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1780",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 296.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42162,
    "c": 0.17678,
    "h": 325.5
  },
  "luminance": 0.06309
}

Semantic roles & 50–950 ramp

primary
#7A1780
secondary
#45B43E
accent
#EC3B46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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