#7A177D#7A177D

#7A177D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.174 H 326.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#7A177D
RGBrgb(122, 23, 125)
HSLhsl(298, 69%, 29%)
HSVhsv(298, 82%, 49%)
CMYKcmyk(2.4%, 81.6%, 0%, 51%)
CIE-LABlab(29.99, 52.84, -34.33)
CIE-LCHlch(29.99, 63.01, 326.98°)
OKLaboklab(41.97% 0.1459 -0.0955)
OKLCHoklch(41.97% 0.174 326.8)
XYZxyz(12.0339, 6.2319, 19.9671)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A177D #1A7D17
analogous
#47177D #7A177D #7D174D
triadic
#7A177D #7D7A17 #177D7A
tetradic
#7A177D #7D4717 #1A7D17 #174D7D
square
#7A177D #7D4717 #1A7D17 #174D7D
split-complementary
#7A177D #4D7D17 #177D47
monochromatic
#19051A #480D49 #7A177D #AC21B1 #D535DA

Accessibility & contrast

On white

9.35
#7A177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7A177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A177D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A177D#FFFFFF#000000##FFFFFF
##7A177D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7E2A4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a177d;
/* rgb */ color: rgb(122, 23, 125);
/* oklch */ color: oklch(42.0% 0.174 326.8);
Tailwind
colors: {
  custom: {
    50: '#a462a3',
    500: '#7a177d',
    950: '#000000',
  },
}
SCSS
$custom: #7a177d;
$custom-light: #a462a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a177d",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 298.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41966,
    "c": 0.17438,
    "h": 326.8
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#7A177D
secondary
#41B23E
accent
#EC3C41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A177D

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

Preview Lab → · Contrast checker → · Palette generator →

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