#7D1771#7D1771

#7D1771 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.167 H 333.7°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7D1771
RGBrgb(125, 23, 113)
HSLhsl(307, 69%, 29%)
HSVhsv(307, 82%, 49%)
CMYKcmyk(0%, 81.6%, 9.6%, 51%)
CIE-LABlab(29.83, 51.51, -26.95)
CIE-LCHlch(29.83, 58.13, 332.38°)
OKLaboklab(41.72% 0.1493 -0.074)
OKLCHoklch(41.72% 0.167 333.7)
XYZxyz(11.7446, 6.1661, 16.1912)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1771 #177D23
analogous
#56177D #7D1771 #7D173E
triadic
#7D1771 #717D17 #17717D
tetradic
#7D1771 #7D5617 #177D23 #173E7D
square
#7D1771 #7D5617 #177D23 #173E7D
split-complementary
#7D1771 #3E7D17 #177D56
monochromatic
#1A0517 #490D42 #7D1771 #B121A0 #DA35C6

Accessibility & contrast

On white

9.40
#7D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7D1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1771
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1771#FFFFFF#000000##FFFFFF
##7D17711.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#3C4B6F
Tritanopia (blue-blind)
#832244
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1771;
/* rgb */ color: rgb(125, 23, 113);
/* oklch */ color: oklch(41.7% 0.167 333.7);
Tailwind
colors: {
  custom: {
    50: '#a6629a',
    500: '#7d1771',
    950: '#000000',
  },
}
SCSS
$custom: #7d1771;
$custom-light: #a6629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1771",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 307.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41724,
    "c": 0.16663,
    "h": 333.7
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#7D1771
secondary
#3EB24C
accent
#EC513C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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