#7D177B#7D177B

#7D177B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.174 H 329.0°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7D177B
RGBrgb(125, 23, 123)
HSLhsl(301, 69%, 29%)
HSVhsv(301, 82%, 49%)
CMYKcmyk(0%, 81.6%, 1.6%, 51%)
CIE-LABlab(30.41, 53.13, -32.37)
CIE-LCHlch(30.41, 62.22, 328.65°)
OKLaboklab(42.33% 0.1494 -0.0897)
OKLCHoklch(42.33% 0.174 329)
XYZxyz(12.3389, 6.4038, 19.3212)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D177B #177D19
analogous
#4C177D #7D177B #7D1748
triadic
#7D177B #7B7D17 #177B7D
tetradic
#7D177B #7D4C17 #177D19 #17487D
square
#7D177B #7D4C17 #177D19 #17487D
split-complementary
#7D177B #487D17 #177D4C
monochromatic
#1A0519 #490D48 #7D177B #B121AE #DA35D7

Accessibility & contrast

On white

9.21
#7D177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7D177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D177B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D177B#FFFFFF#000000##FFFFFF
##7D177B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#822849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d177b;
/* rgb */ color: rgb(125, 23, 123);
/* oklch */ color: oklch(42.3% 0.174 329.0);
Tailwind
colors: {
  custom: {
    50: '#a662a1',
    500: '#7d177b',
    950: '#000000',
  },
}
SCSS
$custom: #7d177b;
$custom-light: #a662a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d177b",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 301.176,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42327,
    "c": 0.17422,
    "h": 329
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#7D177B
secondary
#3EB240
accent
#EC3F3C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D177B

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

Preview Lab → · Contrast checker → · Palette generator →

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