#7D1976#7D1976

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

Color values

HEX#7D1976
RGBrgb(125, 25, 118)
HSLhsl(304, 67%, 29%)
HSVhsv(304, 80%, 49%)
CMYKcmyk(0%, 80%, 5.6%, 51%)
CIE-LABlab(30.31, 51.73, -29.36)
CIE-LCHlch(30.31, 59.48, 330.42°)
OKLaboklab(42.16% 0.1477 -0.081)
OKLCHoklch(42.16% 0.168 331.3)
XYZxyz(12.0751, 6.3642, 17.7285)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1976 #197D20
analogous
#52197D #7D1976 #7D1944
triadic
#7D1976 #767D19 #19767D
tetradic
#7D1976 #7D5219 #197D20 #19447D
square
#7D1976 #7D5219 #197D20 #19447D
split-complementary
#7D1976 #447D19 #197D52
monochromatic
#1A0518 #4A0F46 #7D1976 #B023A6 #D739CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1976#FFFFFF#000000##FFFFFF
##7D19761.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)
#0E3F78
Deuteranopia (green-blind)
#3A4C74
Tritanopia (blue-blind)
#822647
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1976;
/* rgb */ color: rgb(125, 25, 118);
/* oklch */ color: oklch(42.2% 0.168 331.3);
Tailwind
colors: {
  custom: {
    50: '#a6639e',
    500: '#7d1976',
    950: '#000000',
  },
}
SCSS
$custom: #7d1976;
$custom-light: #a6639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1976",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 304.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.16847,
    "h": 331.3
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#7D1976
secondary
#40B148
accent
#EA4A3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1976

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

Preview Lab → · Contrast checker → · Palette generator →

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