#7C1271#7C1271

#7C1271 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.170 H 333.2°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#7C1271
RGBrgb(124, 18, 113)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 85%, 49%)
CMYKcmyk(0%, 85.5%, 8.9%, 51.4%)
CIE-LABlab(29.19, 52.59, -27.97)
CIE-LCHlch(29.19, 59.57, 332.00°)
OKLaboklab(41.23% 0.1521 -0.0769)
OKLCHoklch(41.23% 0.17 333.2)
XYZxyz(11.5092, 5.9110, 16.1544)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1271 #127C1D
analogous
#52127C #7C1271 #7C123C
triadic
#7C1271 #717C12 #12717C
tetradic
#7C1271 #7C5212 #127C1D #123C7C
square
#7C1271 #7C5212 #127C1D #123C7C
split-complementary
#7C1271 #3C7C12 #127C52
monochromatic
#1B0418 #470A40 #7C1271 #B11AA2 #E029CD

Accessibility & contrast

On white

9.62
#7C1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7C1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1271
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1271#FFFFFF#000000##FFFFFF
##7C12711.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3B73
Deuteranopia (green-blind)
#394A6F
Tritanopia (blue-blind)
#822043
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c1271;
/* rgb */ color: rgb(124, 18, 113);
/* oklch */ color: oklch(41.2% 0.170 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6609a',
    500: '#7c1271',
    950: '#000000',
  },
}
SCSS
$custom: #7c1271;
$custom-light: #a6609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1271",
  "rgb": {
    "r": 124,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 306.226,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41232,
    "c": 0.17046,
    "h": 333.2
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#7C1271
secondary
#38B244
accent
#F14A37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7C1271

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

Preview Lab → · Contrast checker → · Palette generator →

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