#7A176A#7A176A

#7A176A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.8% C 0.160 H 335.8°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#7A176A
RGBrgb(122, 23, 106)
HSLhsl(310, 68%, 28%)
HSVhsv(310, 81%, 48%)
CMYKcmyk(0%, 81.1%, 13.1%, 52.2%)
CIE-LABlab(28.88, 49.72, -23.98)
CIE-LCHlch(28.88, 55.20, 334.25°)
OKLaboklab(40.82% 0.1458 -0.0655)
OKLCHoklch(40.82% 0.16 335.8)
XYZxyz(10.9341, 5.7920, 14.1750)
Luminance0.0579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A176A #177A27
analogous
#58177A #7A176A #7A1738
triadic
#7A176A #6A7A17 #176A7A
tetradic
#7A176A #7A5817 #177A27 #17387A
square
#7A176A #7A5817 #177A27 #17387A
split-complementary
#7A176A #387A17 #177A58
monochromatic
#1A0516 #470D3D #7A176A #AD2197 #D933BE

Accessibility & contrast

On white

9.73
#7A176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7A176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A176A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A176A#FFFFFF#000000##FFFFFF
##7A176A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6C
Deuteranopia (green-blind)
#3D4968
Tritanopia (blue-blind)
#811F40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a176a;
/* rgb */ color: rgb(122, 23, 106);
/* oklch */ color: oklch(40.8% 0.160 335.8);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a176a',
    950: '#000000',
  },
}
SCSS
$custom: #7a176a;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a176a",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 309.697,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40817,
    "c": 0.15985,
    "h": 335.8
  },
  "luminance": 0.05791
}

Semantic roles & 50–950 ramp

primary
#7A176A
secondary
#3EAF50
accent
#EB593D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A176A

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

Preview Lab → · Contrast checker → · Palette generator →

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