#7D2971#7D2971

#7D2971 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.4% C 0.145 H 333.9°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7D2971
RGBrgb(125, 41, 113)
HSLhsl(309, 51%, 33%)
HSVhsv(309, 67%, 49%)
CMYKcmyk(0%, 67.2%, 9.6%, 51%)
CIE-LABlab(32.12, 45.01, -23.34)
CIE-LCHlch(32.12, 50.71, 332.59°)
OKLaboklab(43.38% 0.1303 -0.0638)
OKLCHoklch(43.38% 0.145 333.9)
XYZxyz(12.2311, 7.1391, 16.3534)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2971 #297D35
analogous
#5F297D #7D2971 #7D2947
triadic
#7D2971 #717D29 #29717D
tetradic
#7D2971 #7D5F29 #297D35 #29477D
square
#7D2971 #7D5F29 #297D35 #29477D
split-complementary
#7D2971 #477D29 #297D5F
monochromatic
#210B1E #4F1A47 #7D2971 #AB389B #C858B8

Accessibility & contrast

On white

8.65
#7D2971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7D2971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2971
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2971#FFFFFF#000000##FFFFFF
##7D29711.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274473
Deuteranopia (green-blind)
#43506F
Tritanopia (blue-blind)
#832F49
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d2971;
/* rgb */ color: rgb(125, 41, 113);
/* oklch */ color: oklch(43.4% 0.145 333.9);
Tailwind
colors: {
  custom: {
    50: '#a56a9a',
    500: '#7d2971',
    950: '#000000',
  },
}
SCSS
$custom: #7d2971;
$custom-light: #a56a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2971",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 308.571,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43379,
    "c": 0.14503,
    "h": 333.9
  },
  "luminance": 0.07138
}

Semantic roles & 50–950 ramp

primary
#7D2971
secondary
#54AE61
accent
#DA624E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7D2971

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

Preview Lab → · Contrast checker → · Palette generator →

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