#7D177F#7D177F

#7D177F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.177 H 327.3°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7D177F
RGBrgb(125, 23, 127)
HSLhsl(299, 69%, 29%)
HSVhsv(299, 82%, 50%)
CMYKcmyk(1.6%, 81.9%, 0%, 50.2%)
CIE-LABlab(30.65, 53.81, -34.50)
CIE-LCHlch(30.65, 63.92, 327.33°)
OKLaboklab(42.58% 0.1492 -0.0959)
OKLCHoklch(42.58% 0.177 327.3)
XYZxyz(12.5944, 6.5060, 20.6670)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D177F #197F17
analogous
#49177F #7D177F #7F174D
triadic
#7D177F #7F7D17 #177F7D
tetradic
#7D177F #7F4917 #197F17 #174D7F
square
#7D177F #7F4917 #197F17 #174D7F
split-complementary
#7D177F #4D7F17 #177F49
monochromatic
#19051A #4A0E4B #7D177F #B020B3 #D736DB

Accessibility & contrast

On white

9.13
#7D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7D177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D177F
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D177F#FFFFFF#000000##FFFFFF
##7D177F1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#344D7D
Tritanopia (blue-blind)
#812A4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d177f;
/* rgb */ color: rgb(125, 23, 127);
/* oklch */ color: oklch(42.6% 0.177 327.3);
Tailwind
colors: {
  custom: {
    50: '#a663a4',
    500: '#7d177f',
    950: '#000000',
  },
}
SCSS
$custom: #7d177f;
$custom-light: #a663a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d177f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 298.846,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4258,
    "c": 0.17733,
    "h": 327.3
  },
  "luminance": 0.06505
}

Semantic roles & 50–950 ramp

primary
#7D177F
secondary
#40B43E
accent
#EC3C3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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