#7B1B7A#7B1B7A

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

Color values

HEX#7B1B7A
RGBrgb(123, 27, 122)
HSLhsl(301, 64%, 29%)
HSVhsv(301, 78%, 48%)
CMYKcmyk(0%, 78%, 0.8%, 51.8%)
CIE-LABlab(30.40, 51.33, -31.77)
CIE-LCHlch(30.40, 60.37, 328.24°)
OKLaboklab(42.23% 0.1438 -0.088)
OKLCHoklch(42.23% 0.169 328.5)
XYZxyz(12.0730, 6.4009, 19.0082)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B7A #1B7B1C
analogous
#4C1B7B #7B1B7A #7B1B4A
triadic
#7B1B7A #7A7B1B #1B7A7B
tetradic
#7B1B7A #7B4C1B #1B7B1C #1B4A7B
square
#7B1B7A #7B4C1B #1B7B1C #1B4A7B
split-complementary
#7B1B7A #4A7B1B #1B7B4C
monochromatic
#190619 #491048 #7B1B7A #AD26AC #D43CD3

Accessibility & contrast

On white

9.21
#7B1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1B7A
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B7A#FFFFFF#000000##FFFFFF
##7B1B7A1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407D
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#7F2A4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1b7a;
/* rgb */ color: rgb(123, 27, 122);
/* oklch */ color: oklch(42.2% 0.169 328.5);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7b1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b7a;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b7a",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 300.625,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42234,
    "c": 0.16857,
    "h": 328.5
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#7B1B7A
secondary
#43AF44
accent
#E74341
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7B1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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