#7D177E#7D177E

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

Color values

HEX#7D177E
RGBrgb(125, 23, 126)
HSLhsl(299, 69%, 29%)
HSVhsv(299, 82%, 49%)
CMYKcmyk(0.8%, 81.7%, 0%, 50.6%)
CIE-LABlab(30.59, 53.64, -33.97)
CIE-LCHlch(30.59, 63.49, 327.65°)
OKLaboklab(42.52% 0.1492 -0.0943)
OKLCHoklch(42.52% 0.177 327.7)
XYZxyz(12.5296, 6.4801, 20.3255)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D177E #187E17
analogous
#49177E #7D177E #7E174C
triadic
#7D177E #7E7D17 #177E7D
tetradic
#7D177E #7E4917 #187E17 #174C7E
square
#7D177E #7E4917 #187E17 #174C7E
split-complementary
#7D177E #4C7E17 #177E49
monochromatic
#1A051A #4A0E4A #7D177E #B020B2 #D935DA

Accessibility & contrast

On white

9.15
#7D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D177E
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D177E#FFFFFF#000000##FFFFFF
##7D177E1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#354C7C
Tritanopia (blue-blind)
#812A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d177e;
/* rgb */ color: rgb(125, 23, 126);
/* oklch */ color: oklch(42.5% 0.177 327.7);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7d177e',
    950: '#000000',
  },
}
SCSS
$custom: #7d177e;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d177e",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 299.417,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42516,
    "c": 0.17655,
    "h": 327.7
  },
  "luminance": 0.06479
}

Semantic roles & 50–950 ramp

primary
#7D177E
secondary
#3FB33E
accent
#EC3C3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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