#7A177B#7A177B

#7A177B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.173 H 327.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7A177B
RGBrgb(122, 23, 123)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 48%)
CMYKcmyk(0.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(29.87, 52.49, -33.27)
CIE-LCHlch(29.87, 62.15, 327.63°)
OKLaboklab(41.84% 0.146 -0.0924)
OKLCHoklch(41.84% 0.173 327.7)
XYZxyz(11.9074, 6.1813, 19.3010)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A177B #187B17
analogous
#48177B #7A177B #7B174A
triadic
#7A177B #7B7A17 #177B7A
tetradic
#7A177B #7B4817 #187B17 #174A7B
square
#7A177B #7B4817 #187B17 #174A7B
split-complementary
#7A177B #4A7B17 #177B48
monochromatic
#1A051A #470D47 #7A177B #AD21AF #D733D9

Accessibility & contrast

On white

9.39
#7A177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A177B
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A177B#FFFFFF#000000##FFFFFF
##7A177B1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#334B79
Tritanopia (blue-blind)
#7E2949
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a177b;
/* rgb */ color: rgb(122, 23, 123);
/* oklch */ color: oklch(41.8% 0.173 327.7);
Tailwind
colors: {
  custom: {
    50: '#a462a2',
    500: '#7a177b',
    950: '#000000',
  },
}
SCSS
$custom: #7a177b;
$custom-light: #a462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a177b",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 299.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41837,
    "c": 0.17279,
    "h": 327.7
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#7A177B
secondary
#3FB03E
accent
#EB3C3E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A177B

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

Preview Lab → · Contrast checker → · Palette generator →

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