#7B177A#7B177A

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

Color values

HEX#7B177A
RGBrgb(123, 23, 122)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 48%)
CMYKcmyk(0%, 81.3%, 0.8%, 51.8%)
CIE-LABlab(29.98, 52.53, -32.44)
CIE-LCHlch(29.98, 61.74, 328.31°)
OKLaboklab(41.94% 0.1472 -0.0899)
OKLCHoklch(41.94% 0.172 328.6)
XYZxyz(11.9875, 6.2298, 18.9797)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B177A #177B18
analogous
#4A177B #7B177A #7B1748
triadic
#7B177A #7A7B17 #177A7B
tetradic
#7B177A #7B4A17 #177B18 #17487B
square
#7B177A #7B4A17 #177B18 #17487B
split-complementary
#7B177A #487B17 #177B4A
monochromatic
#1A051A #470D47 #7B177A #AF21AD #D933D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B177A#FFFFFF#000000##FFFFFF
##7B177A1.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)
#003E7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7F2849
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b177a;
/* rgb */ color: rgb(123, 23, 122);
/* oklch */ color: oklch(41.9% 0.172 328.6);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7b177a',
    950: '#000000',
  },
}
SCSS
$custom: #7b177a;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b177a",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 300.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41937,
    "c": 0.17248,
    "h": 328.6
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#7B177A
secondary
#3EB03F
accent
#EB3E3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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