#7D1978#7D1978

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

Color values

HEX#7D1978
RGBrgb(125, 25, 120)
HSLhsl(303, 67%, 29%)
HSVhsv(303, 80%, 49%)
CMYKcmyk(0%, 80%, 4%, 51%)
CIE-LABlab(30.43, 52.06, -30.44)
CIE-LCHlch(30.43, 60.31, 329.68°)
OKLaboklab(42.28% 0.1478 -0.0841)
OKLCHoklch(42.28% 0.17 330.4)
XYZxyz(12.1952, 6.4123, 18.3611)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1978 #197D1E
analogous
#50197D #7D1978 #7D1946
triadic
#7D1978 #787D19 #19787D
tetradic
#7D1978 #7D5019 #197D1E #19467D
square
#7D1978 #7D5019 #197D1E #19467D
split-complementary
#7D1978 #467D19 #197D50
monochromatic
#1A0518 #4A0F47 #7D1978 #B023A9 #D739CF

Accessibility & contrast

On white

9.20
#7D1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7D1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1978
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1978#FFFFFF#000000##FFFFFF
##7D19781.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3F7A
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#822748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1978;
/* rgb */ color: rgb(125, 25, 120);
/* oklch */ color: oklch(42.3% 0.170 330.4);
Tailwind
colors: {
  custom: {
    50: '#a6639f',
    500: '#7d1978',
    950: '#000000',
  },
}
SCSS
$custom: #7d1978;
$custom-light: #a6639f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1978",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 303,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42284,
    "c": 0.17001,
    "h": 330.4
  },
  "luminance": 0.06411
}

Semantic roles & 50–950 ramp

primary
#7D1978
secondary
#40B146
accent
#EA473E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1978

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

Preview Lab → · Contrast checker → · Palette generator →

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