#7B1B7C#7B1B7C

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

Color values

HEX#7B1B7C
RGBrgb(123, 27, 124)
HSLhsl(299, 64%, 30%)
HSVhsv(299, 78%, 49%)
CMYKcmyk(0.8%, 78.2%, 0%, 51.4%)
CIE-LABlab(30.52, 51.68, -32.84)
CIE-LCHlch(30.52, 61.23, 327.56°)
OKLaboklab(42.36% 0.1437 -0.0911)
OKLCHoklch(42.36% 0.17 327.6)
XYZxyz(12.1982, 6.4509, 19.6676)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B7C #1C7C1B
analogous
#4A1B7C #7B1B7C #7C1B4D
triadic
#7B1B7C #7C7B1B #1B7C7B
tetradic
#7B1B7C #7C4A1B #1C7C1B #1B4D7C
square
#7B1B7C #7C4A1B #1C7C1B #1B4D7C
split-complementary
#7B1B7C #4D7C1B #1B7C4A
monochromatic
#190519 #49104A #7B1B7C #AD26AE #D33DD5

Accessibility & contrast

On white

9.17
#7B1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7B1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B7C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B7C#FFFFFF#000000##FFFFFF
##7B1B7C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01407F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#7F2B4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1b7c;
/* rgb */ color: rgb(123, 27, 124);
/* oklch */ color: oklch(42.4% 0.170 327.6);
Tailwind
colors: {
  custom: {
    50: '#a563a2',
    500: '#7b1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b7c;
$custom-light: #a563a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b7c",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 299.381,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42359,
    "c": 0.17018,
    "h": 327.6
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#7B1B7C
secondary
#44B043
accent
#E74142
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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