#7C1B76#7C1B76

#7C1B76 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.166 H 330.8°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7C1B76
RGBrgb(124, 27, 118)
HSLhsl(304, 64%, 30%)
HSVhsv(304, 78%, 49%)
CMYKcmyk(0%, 78.2%, 4.8%, 51.4%)
CIE-LABlab(30.35, 50.88, -29.32)
CIE-LCHlch(30.35, 58.73, 330.05°)
OKLaboklab(42.15% 0.1449 -0.0809)
OKLCHoklch(42.15% 0.166 330.8)
XYZxyz(11.9741, 6.3779, 17.7364)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B76 #1B7C21
analogous
#511B7C #7C1B76 #7C1B46
triadic
#7C1B76 #767C1B #1B767C
tetradic
#7C1B76 #7C511B #1B7C21 #1B467C
square
#7C1B76 #7C511B #1B7C21 #1B467C
split-complementary
#7C1B76 #467C1B #1B7C51
monochromatic
#190518 #4A1046 #7C1B76 #AE26A6 #D53DCB

Accessibility & contrast

On white

9.23
#7C1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7C1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B76
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B76#FFFFFF#000000##FFFFFF
##7C1B761.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103F78
Deuteranopia (green-blind)
#3A4C74
Tritanopia (blue-blind)
#812847
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c1b76;
/* rgb */ color: rgb(124, 27, 118);
/* oklch */ color: oklch(42.2% 0.166 330.8);
Tailwind
colors: {
  custom: {
    50: '#a5639e',
    500: '#7c1b76',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b76;
$custom-light: #a5639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b76",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 303.711,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.16592,
    "h": 330.8
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#7C1B76
secondary
#43B04A
accent
#E74B41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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