#7D2771#7D2771

#7D2771 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.148 H 333.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7D2771
RGBrgb(125, 39, 113)
HSLhsl(308, 52%, 32%)
HSVhsv(308, 69%, 49%)
CMYKcmyk(0%, 68.8%, 9.6%, 51%)
CIE-LABlab(31.82, 45.86, -23.82)
CIE-LCHlch(31.82, 51.68, 332.55°)
OKLaboklab(43.16% 0.1328 -0.0651)
OKLCHoklch(43.16% 0.148 333.9)
XYZxyz(12.1637, 7.0043, 16.3309)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2771 #277D33
analogous
#5E277D #7D2771 #7D2746
triadic
#7D2771 #717D27 #27717D
tetradic
#7D2771 #7D5E27 #277D33 #27467D
square
#7D2771 #7D5E27 #277D33 #27467D
split-complementary
#7D2771 #467D27 #277D5E
monochromatic
#200A1D #4E1847 #7D2771 #AC369B #CA55B9

Accessibility & contrast

On white

8.75
#7D2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7D2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2771
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2771#FFFFFF#000000##FFFFFF
##7D27711.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254373
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#832E48
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d2771;
/* rgb */ color: rgb(125, 39, 113);
/* oklch */ color: oklch(43.2% 0.148 333.9);
Tailwind
colors: {
  custom: {
    50: '#a5699a',
    500: '#7d2771',
    950: '#000000',
  },
}
SCSS
$custom: #7d2771;
$custom-light: #a5699a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2771",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 308.372,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43158,
    "c": 0.14785,
    "h": 333.9
  },
  "luminance": 0.07003
}

Semantic roles & 50–950 ramp

primary
#7D2771
secondary
#51AF5E
accent
#DC604C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7D2771

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

Preview Lab → · Contrast checker → · Palette generator →

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