#7D2179#7D2179

#7D2179 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.162 H 329.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7D2179
RGBrgb(125, 33, 121)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 74%, 49%)
CMYKcmyk(0%, 73.6%, 3.2%, 51%)
CIE-LABlab(31.41, 49.57, -29.52)
CIE-LCHlch(31.41, 57.69, 329.23°)
OKLaboklab(43.01% 0.1402 -0.0815)
OKLCHoklch(43.01% 0.162 329.8)
XYZxyz(12.4524, 6.8291, 18.7477)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2179 #217D25
analogous
#53217D #7D2179 #7D214B
triadic
#7D2179 #797D21 #21797D
tetradic
#7D2179 #7D5321 #217D25 #214B7D
square
#7D2179 #7D5321 #217D25 #214B7D
split-complementary
#7D2179 #4B7D21 #217D53
monochromatic
#1C071B #4D144A #7D2179 #AD2EA8 #CF49C9

Accessibility & contrast

On white

8.88
#7D2179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D2179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2179
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2179#FFFFFF#000000##FFFFFF
##7D21791.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#3C4E77
Tritanopia (blue-blind)
#822D4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d2179;
/* rgb */ color: rgb(125, 33, 121);
/* oklch */ color: oklch(43.0% 0.162 329.8);
Tailwind
colors: {
  custom: {
    50: '#a666a0',
    500: '#7d2179',
    950: '#000000',
  },
}
SCSS
$custom: #7d2179;
$custom-light: #a666a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2179",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 302.609,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.1621,
    "h": 329.8
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#7D2179
secondary
#4AB04E
accent
#E14D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2179

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

Preview Lab → · Contrast checker → · Palette generator →

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