#7B1C7D#7B1C7D

#7B1C7D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.170 H 327.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7B1C7D
RGBrgb(123, 28, 125)
HSLhsl(299, 63%, 30%)
HSVhsv(299, 78%, 49%)
CMYKcmyk(1.6%, 77.6%, 0%, 51%)
CIE-LABlab(30.70, 51.53, -33.20)
CIE-LCHlch(30.70, 61.30, 327.21°)
OKLaboklab(42.5% 0.1428 -0.0922)
OKLCHoklch(42.5% 0.17 327.2)
XYZxyz(12.2851, 6.5230, 20.0101)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C7D #1E7D1C
analogous
#4B1C7D #7B1C7D #7D1C4E
triadic
#7B1C7D #7D7B1C #1C7D7B
tetradic
#7B1C7D #7D4B1C #1E7D1C #1C4E7D
square
#7B1C7D #7D4B1C #1E7D1C #1C4E7D
split-complementary
#7B1C7D #4E7D1C #1C7D4B
monochromatic
#190619 #4A114B #7B1C7D #AC27AF #D13FD4

Accessibility & contrast

On white

9.11
#7B1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7B1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C7D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C7D#FFFFFF#000000##FFFFFF
##7B1C7D1.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014180
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#7F2C4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1c7d;
/* rgb */ color: rgb(123, 28, 125);
/* oklch */ color: oklch(42.5% 0.170 327.2);
Tailwind
colors: {
  custom: {
    50: '#a564a3',
    500: '#7b1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c7d;
$custom-light: #a564a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c7d",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 298.763,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.42501,
    "c": 0.16995,
    "h": 327.2
  },
  "luminance": 0.06522
}

Semantic roles & 50–950 ramp

primary
#7B1C7D
secondary
#46B144
accent
#E64145
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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