#7C2177#7C2177

#7C2177 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.160 H 330.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7C2177
RGBrgb(124, 33, 119)
HSLhsl(303, 58%, 31%)
HSVhsv(303, 73%, 49%)
CMYKcmyk(0%, 73.4%, 4%, 51.4%)
CIE-LABlab(31.13, 48.99, -28.72)
CIE-LCHlch(31.13, 56.78, 329.62°)
OKLaboklab(42.73% 0.139 -0.0792)
OKLCHoklch(42.73% 0.16 330.3)
XYZxyz(12.1858, 6.7056, 18.1017)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2177 #217C26
analogous
#53217C #7C2177 #7C2149
triadic
#7C2177 #777C21 #21777C
tetradic
#7C2177 #7C5321 #217C26 #21497C
square
#7C2177 #7C5321 #217C26 #21497C
split-complementary
#7C2177 #497C21 #217C53
monochromatic
#1B071A #4C1449 #7C2177 #AC2EA5 #CF49C7

Accessibility & contrast

On white

8.97
#7C2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7C2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2177
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2177#FFFFFF#000000##FFFFFF
##7C21771.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184179
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#812C49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c2177;
/* rgb */ color: rgb(124, 33, 119);
/* oklch */ color: oklch(42.7% 0.160 330.3);
Tailwind
colors: {
  custom: {
    50: '#a5669e',
    500: '#7c2177',
    950: '#000000',
  },
}
SCSS
$custom: #7c2177;
$custom-light: #a5669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2177",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 303.297,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42731,
    "c": 0.15993,
    "h": 330.3
  },
  "luminance": 0.06705
}

Semantic roles & 50–950 ramp

primary
#7C2177
secondary
#4AAF4F
accent
#E14F47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2177

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

Preview Lab → · Contrast checker → · Palette generator →

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