#7C2176#7C2176

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

Color values

HEX#7C2176
RGBrgb(124, 33, 118)
HSLhsl(304, 58%, 31%)
HSVhsv(304, 73%, 49%)
CMYKcmyk(0%, 73.4%, 4.8%, 51.4%)
CIE-LABlab(31.07, 48.82, -28.17)
CIE-LCHlch(31.07, 56.36, 330.01°)
OKLaboklab(42.67% 0.1389 -0.0776)
OKLCHoklch(42.67% 0.159 330.8)
XYZxyz(12.1260, 6.6817, 17.7871)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2176 #217C27
analogous
#54217C #7C2176 #7C2148
triadic
#7C2176 #767C21 #21767C
tetradic
#7C2176 #7C5421 #217C27 #21487C
square
#7C2176 #7C5421 #217C27 #21487C
split-complementary
#7C2176 #487C21 #217C54
monochromatic
#1B071A #4C1448 #7C2176 #AC2EA4 #CF49C6

Accessibility & contrast

On white

8.99
#7C2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2176
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2176#FFFFFF#000000##FFFFFF
##7C21761.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2176;
/* rgb */ color: rgb(124, 33, 118);
/* oklch */ color: oklch(42.7% 0.159 330.8);
Tailwind
colors: {
  custom: {
    50: '#a5669e',
    500: '#7c2176',
    950: '#000000',
  },
}
SCSS
$custom: #7c2176;
$custom-light: #a5669e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2176",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 303.956,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42672,
    "c": 0.15912,
    "h": 330.8
  },
  "luminance": 0.06681
}

Semantic roles & 50–950 ramp

primary
#7C2176
secondary
#4AAF51
accent
#E15147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2176

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

Preview Lab → · Contrast checker → · Palette generator →

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