#7C2D71#7C2D71

#7C2D71 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.7% C 0.138 H 333.5°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7C2D71
RGBrgb(124, 45, 113)
HSLhsl(308, 47%, 33%)
HSVhsv(308, 64%, 49%)
CMYKcmyk(0%, 63.7%, 8.9%, 51.4%)
CIE-LABlab(32.60, 42.94, -22.61)
CIE-LCHlch(32.60, 48.53, 332.24°)
OKLaboklab(43.7% 0.1239 -0.0617)
OKLCHoklch(43.7% 0.138 333.5)
XYZxyz(12.2312, 7.3550, 16.3950)
Luminance0.0735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D71 #2D7C38
analogous
#5F2D7C #7C2D71 #7C2D49
triadic
#7C2D71 #717C2D #2D717C
tetradic
#7C2D71 #7C5F2D #2D7C38 #2D497C
square
#7C2D71 #7C5F2D #2D7C38 #2D497C
split-complementary
#7C2D71 #497C2D #2D7C5F
monochromatic
#220C1F #4F1D48 #7C2D71 #A93D9A #C55FB7

Accessibility & contrast

On white

8.50
#7C2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7C2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2D71
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D71#FFFFFF#000000##FFFFFF
##7C2D711.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#82334A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2d71;
/* rgb */ color: rgb(124, 45, 113);
/* oklch */ color: oklch(43.7% 0.138 333.5);
Tailwind
colors: {
  custom: {
    50: '#a46c9a',
    500: '#7c2d71',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d71;
$custom-light: #a46c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d71",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 308.354,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.13839,
    "h": 333.5
  },
  "luminance": 0.07354
}

Semantic roles & 50–950 ramp

primary
#7C2D71
secondary
#5AAB65
accent
#D66451
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7C2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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