#7A176D#7A176D

#7A176D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.162 H 334.3°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#7A176D
RGBrgb(122, 23, 109)
HSLhsl(308, 68%, 28%)
HSVhsv(308, 81%, 48%)
CMYKcmyk(0%, 81.1%, 10.7%, 52.2%)
CIE-LABlab(29.04, 50.19, -25.66)
CIE-LCHlch(29.04, 56.36, 332.92°)
OKLaboklab(40.99% 0.146 -0.0703)
OKLCHoklch(40.99% 0.162 334.3)
XYZxyz(11.0929, 5.8555, 15.0110)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A176D #177A24
analogous
#55177A #7A176D #7A173B
triadic
#7A176D #6D7A17 #176D7A
tetradic
#7A176D #7A5517 #177A24 #173B7A
square
#7A176D #7A5517 #177A24 #173B7A
split-complementary
#7A176D #3B7A17 #177A55
monochromatic
#1A0517 #470D3F #7A176D #AD219B #D933C3

Accessibility & contrast

On white

9.67
#7A176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A176D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A176D#FFFFFF#000000##FFFFFF
##7A176D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6F
Deuteranopia (green-blind)
#3B496B
Tritanopia (blue-blind)
#802141
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a176d;
/* rgb */ color: rgb(122, 23, 109);
/* oklch */ color: oklch(41.0% 0.162 334.3);
Tailwind
colors: {
  custom: {
    50: '#a46197',
    500: '#7a176d',
    950: '#000000',
  },
}
SCSS
$custom: #7a176d;
$custom-light: #a46197;
$custom-dark: #000000;
JSON
{
  "hex": "#7a176d",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 307.879,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.40987,
    "c": 0.16205,
    "h": 334.3
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#7A176D
secondary
#3EAF4D
accent
#EB543D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A176D

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

Preview Lab → · Contrast checker → · Palette generator →

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