#7C1B6D#7C1B6D

#7C1B6D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.159 H 335.2°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7C1B6D
RGBrgb(124, 27, 109)
HSLhsl(309, 64%, 30%)
HSVhsv(309, 78%, 49%)
CMYKcmyk(0%, 78.2%, 12.1%, 51.4%)
CIE-LABlab(29.85, 49.43, -24.37)
CIE-LCHlch(29.85, 55.11, 333.76°)
OKLaboklab(41.63% 0.1444 -0.0666)
OKLCHoklch(41.63% 0.159 335.2)
XYZxyz(11.4646, 6.1741, 15.0530)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B6D #1B7C2A
analogous
#5A1B7C #7C1B6D #7C1B3D
triadic
#7C1B6D #6D7C1B #1B6D7C
tetradic
#7C1B6D #7C5A1B #1B7C2A #1B3D7C
square
#7C1B6D #7C5A1B #1B7C2A #1B3D7C
split-complementary
#7C1B6D #3D7C1B #1B7C5A
monochromatic
#190516 #4A1041 #7C1B6D #AE2699 #D53DBD

Accessibility & contrast

On white

9.40
#7C1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7C1B6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B6D
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B6D#FFFFFF#000000##FFFFFF
##7C1B6D1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3D6F
Deuteranopia (green-blind)
#3E4B6B
Tritanopia (blue-blind)
#822342
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c1b6d;
/* rgb */ color: rgb(124, 27, 109);
/* oklch */ color: oklch(41.6% 0.159 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56397',
    500: '#7c1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b6d;
$custom-light: #a56397;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b6d",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 309.278,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41633,
    "c": 0.15905,
    "h": 335.2
  },
  "luminance": 0.06173
}

Semantic roles & 50–950 ramp

primary
#7C1B6D
secondary
#43B054
accent
#E75A41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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