#7D1772#7D1772

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

Color values

HEX#7D1772
RGBrgb(125, 23, 114)
HSLhsl(306, 69%, 29%)
HSVhsv(306, 82%, 49%)
CMYKcmyk(0%, 81.6%, 8.8%, 51%)
CIE-LABlab(29.88, 51.67, -27.50)
CIE-LCHlch(29.88, 58.53, 331.98°)
OKLaboklab(41.78% 0.1494 -0.0756)
OKLCHoklch(41.78% 0.167 333.2)
XYZxyz(11.8012, 6.1887, 16.4893)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1772 #177D22
analogous
#55177D #7D1772 #7D173F
triadic
#7D1772 #727D17 #17727D
tetradic
#7D1772 #7D5517 #177D22 #173F7D
square
#7D1772 #7D5517 #177D22 #173F7D
split-complementary
#7D1772 #3F7D17 #177D55
monochromatic
#1A0518 #490D43 #7D1772 #B121A1 #DA35C8

Accessibility & contrast

On white

9.39
#7D1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7D1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1772
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1772#FFFFFF#000000##FFFFFF
##7D17721.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#832344
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d1772;
/* rgb */ color: rgb(125, 23, 114);
/* oklch */ color: oklch(41.8% 0.167 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6629b',
    500: '#7d1772',
    950: '#000000',
  },
}
SCSS
$custom: #7d1772;
$custom-light: #a6629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1772",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 306.471,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41782,
    "c": 0.16737,
    "h": 333.2
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#7D1772
secondary
#3EB24B
accent
#EC4F3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1772

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

Preview Lab → · Contrast checker → · Palette generator →

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