#7C1771#7C1771

#7C1771 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.166 H 333.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7C1771
RGBrgb(124, 23, 113)
HSLhsl(307, 69%, 29%)
HSVhsv(307, 81%, 49%)
CMYKcmyk(0%, 81.5%, 8.9%, 51.4%)
CIE-LABlab(29.64, 51.28, -27.25)
CIE-LCHlch(29.64, 58.07, 332.01°)
OKLaboklab(41.56% 0.1483 -0.0749)
OKLCHoklch(41.56% 0.166 333.2)
XYZxyz(11.5993, 6.0911, 16.1844)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1771 #177C22
analogous
#55177C #7C1771 #7C173F
triadic
#7C1771 #717C17 #17717C
tetradic
#7C1771 #7C5517 #177C22 #173F7C
square
#7C1771 #7C5517 #177C22 #173F7C
split-complementary
#7C1771 #3F7C17 #177C55
monochromatic
#1A0518 #480D42 #7C1771 #B021A0 #D934C7

Accessibility & contrast

On white

9.47
#7C1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7C1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1771
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1771#FFFFFF#000000##FFFFFF
##7C17711.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#822344
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c1771;
/* rgb */ color: rgb(124, 23, 113);
/* oklch */ color: oklch(41.6% 0.166 333.2);
Tailwind
colors: {
  custom: {
    50: '#a5629a',
    500: '#7c1771',
    950: '#000000',
  },
}
SCSS
$custom: #7c1771;
$custom-light: #a5629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1771",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 306.535,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41556,
    "c": 0.1661,
    "h": 333.2
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

primary
#7C1771
secondary
#3EB14A
accent
#EC4F3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1771

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

Preview Lab → · Contrast checker → · Palette generator →

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