#7D1971#7D1971

#7D1971 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.165 H 333.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7D1971
RGBrgb(125, 25, 113)
HSLhsl(307, 67%, 29%)
HSVhsv(307, 80%, 49%)
CMYKcmyk(0%, 80%, 9.6%, 51%)
CIE-LABlab(30.03, 50.92, -26.62)
CIE-LCHlch(30.03, 57.46, 332.40°)
OKLaboklab(41.87% 0.1476 -0.073)
OKLCHoklch(41.87% 0.165 333.7)
XYZxyz(11.7858, 6.2485, 16.2049)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1971 #197D25
analogous
#57197D #7D1971 #7D193F
triadic
#7D1971 #717D19 #19717D
tetradic
#7D1971 #7D5719 #197D25 #193F7D
square
#7D1971 #7D5719 #197D25 #193F7D
split-complementary
#7D1971 #3F7D19 #197D57
monochromatic
#1A0517 #4A0F43 #7D1971 #B0239F #D739C4

Accessibility & contrast

On white

9.34
#7D1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7D1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1971
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1971#FFFFFF#000000##FFFFFF
##7D19711.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#832444
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1971;
/* rgb */ color: rgb(125, 25, 113);
/* oklch */ color: oklch(41.9% 0.165 333.7);
Tailwind
colors: {
  custom: {
    50: '#a6639a',
    500: '#7d1971',
    950: '#000000',
  },
}
SCSS
$custom: #7d1971;
$custom-light: #a6639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1971",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 307.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4187,
    "c": 0.16468,
    "h": 333.7
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#7D1971
secondary
#40B14E
accent
#EA533E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1971

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

Preview Lab → · Contrast checker → · Palette generator →

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