#7D2178#7D2178

#7D2178 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.161 H 330.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7D2178
RGBrgb(125, 33, 120)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 74%, 49%)
CMYKcmyk(0%, 73.6%, 4%, 51%)
CIE-LABlab(31.36, 49.40, -28.97)
CIE-LCHlch(31.36, 57.27, 329.61°)
OKLaboklab(42.95% 0.1401 -0.0799)
OKLCHoklch(42.95% 0.161 330.3)
XYZxyz(12.3914, 6.8047, 18.4265)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2178 #217D26
analogous
#54217D #7D2178 #7D214A
triadic
#7D2178 #787D21 #21787D
tetradic
#7D2178 #7D5421 #217D26 #214A7D
square
#7D2178 #7D5421 #217D26 #214A7D
split-complementary
#7D2178 #4A7D21 #217D54
monochromatic
#1C071B #4D144A #7D2178 #AD2EA6 #CF49C8

Accessibility & contrast

On white

8.90
#7D2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7D2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2178
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2178#FFFFFF#000000##FFFFFF
##7D21781.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17427A
Deuteranopia (green-blind)
#3C4E76
Tritanopia (blue-blind)
#822D4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d2178;
/* rgb */ color: rgb(125, 33, 120);
/* oklch */ color: oklch(42.9% 0.161 330.3);
Tailwind
colors: {
  custom: {
    50: '#a6669f',
    500: '#7d2178',
    950: '#000000',
  },
}
SCSS
$custom: #7d2178;
$custom-light: #a6669f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2178",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 303.261,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.1613,
    "h": 330.3
  },
  "luminance": 0.06804
}

Semantic roles & 50–950 ramp

primary
#7D2178
secondary
#4AB050
accent
#E14F46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2178

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

Preview Lab → · Contrast checker → · Palette generator →

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