#7D1878#7D1878

#7D1878 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 330.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7D1878
RGBrgb(125, 24, 120)
HSLhsl(303, 68%, 29%)
HSVhsv(303, 81%, 49%)
CMYKcmyk(0%, 80.8%, 4%, 51%)
CIE-LABlab(30.33, 52.35, -30.61)
CIE-LCHlch(30.33, 60.64, 329.69°)
OKLaboklab(42.21% 0.1486 -0.0845)
OKLCHoklch(42.21% 0.171 330.4)
XYZxyz(12.1742, 6.3703, 18.3541)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1878 #187D1D
analogous
#50187D #7D1878 #7D1846
triadic
#7D1878 #787D18 #18787D
tetradic
#7D1878 #7D5018 #187D1D #18467D
square
#7D1878 #7D5018 #187D1D #18467D
split-complementary
#7D1878 #467D18 #187D50
monochromatic
#1A0519 #4A0E47 #7D1878 #B022A9 #D937D1

Accessibility & contrast

On white

9.24
#7D1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7D1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1878
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1878#FFFFFF#000000##FFFFFF
##7D18781.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7B
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#822748
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1878;
/* rgb */ color: rgb(125, 24, 120);
/* oklch */ color: oklch(42.2% 0.171 330.4);
Tailwind
colors: {
  custom: {
    50: '#a6639f',
    500: '#7d1878',
    950: '#000000',
  },
}
SCSS
$custom: #7d1878;
$custom-light: #a6639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1878",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 302.97,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42211,
    "c": 0.17097,
    "h": 330.4
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#7D1878
secondary
#3FB245
accent
#EB463D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1878

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

Preview Lab → · Contrast checker → · Palette generator →

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