#7A176B#7A176B

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

Color values

HEX#7A176B
RGBrgb(122, 23, 107)
HSLhsl(309, 68%, 28%)
HSVhsv(309, 81%, 48%)
CMYKcmyk(0%, 81.1%, 12.3%, 52.2%)
CIE-LABlab(28.94, 49.87, -24.54)
CIE-LCHlch(28.94, 55.59, 333.80°)
OKLaboklab(40.87% 0.1459 -0.0671)
OKLCHoklch(40.87% 0.161 335.3)
XYZxyz(10.9864, 5.8129, 14.4505)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A176B #177A26
analogous
#57177A #7A176B #7A1739
triadic
#7A176B #6B7A17 #176B7A
tetradic
#7A176B #7A5717 #177A26 #17397A
square
#7A176B #7A5717 #177A26 #17397A
split-complementary
#7A176B #397A17 #177A57
monochromatic
#1A0517 #470D3E #7A176B #AD2198 #D933BF

Accessibility & contrast

On white

9.71
#7A176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A176B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A176B#FFFFFF#000000##FFFFFF
##7A176B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#3C4969
Tritanopia (blue-blind)
#802040
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a176b;
/* rgb */ color: rgb(122, 23, 107);
/* oklch */ color: oklch(40.9% 0.161 335.3);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a176b',
    950: '#000000',
  },
}
SCSS
$custom: #7a176b;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a176b",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 309.091,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40873,
    "c": 0.16058,
    "h": 335.3
  },
  "luminance": 0.05812
}

Semantic roles & 50–950 ramp

primary
#7A176B
secondary
#3EAF4F
accent
#EB573D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A176B

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

Preview Lab → · Contrast checker → · Palette generator →

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