#7A176C#7A176C

#7A176C is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.161 H 334.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7A176C
RGBrgb(122, 23, 108)
HSLhsl(308, 68%, 28%)
HSVhsv(308, 81%, 48%)
CMYKcmyk(0%, 81.1%, 11.5%, 52.2%)
CIE-LABlab(28.99, 50.03, -25.10)
CIE-LCHlch(28.99, 55.97, 333.36°)
OKLaboklab(40.93% 0.1459 -0.0687)
OKLCHoklch(40.93% 0.161 334.8)
XYZxyz(11.0393, 5.8341, 14.7291)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A176C #177A25
analogous
#56177A #7A176C #7A173A
triadic
#7A176C #6C7A17 #176C7A
tetradic
#7A176C #7A5617 #177A25 #173A7A
square
#7A176C #7A5617 #177A25 #173A7A
split-complementary
#7A176C #3A7A17 #177A56
monochromatic
#1A0517 #470D3E #7A176C #AD219A #D933C1

Accessibility & contrast

On white

9.69
#7A176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A176C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A176C
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A176C#FFFFFF#000000##FFFFFF
##7A176C1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6E
Deuteranopia (green-blind)
#3C496A
Tritanopia (blue-blind)
#802141
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a176c;
/* rgb */ color: rgb(122, 23, 108);
/* oklch */ color: oklch(40.9% 0.161 334.8);
Tailwind
colors: {
  custom: {
    50: '#a46196',
    500: '#7a176c',
    950: '#000000',
  },
}
SCSS
$custom: #7a176c;
$custom-light: #a46196;
$custom-dark: #000000;
JSON
{
  "hex": "#7a176c",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 308.485,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.4093,
    "c": 0.16131,
    "h": 334.8
  },
  "luminance": 0.05833
}

Semantic roles & 50–950 ramp

primary
#7A176C
secondary
#3EAF4E
accent
#EB553D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A176C

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

Preview Lab → · Contrast checker → · Palette generator →

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