#7B1B7D#7B1B7D

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

Color values

HEX#7B1B7D
RGBrgb(123, 27, 125)
HSLhsl(299, 64%, 30%)
HSVhsv(299, 78%, 49%)
CMYKcmyk(1.6%, 78.4%, 0%, 51%)
CIE-LABlab(30.58, 51.85, -33.38)
CIE-LCHlch(30.58, 61.66, 327.23°)
OKLaboklab(42.42% 0.1437 -0.0927)
OKLCHoklch(42.42% 0.171 327.2)
XYZxyz(12.2618, 6.4764, 20.0023)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B7D #1D7D1B
analogous
#4A1B7D #7B1B7D #7D1B4E
triadic
#7B1B7D #7D7B1B #1B7D7B
tetradic
#7B1B7D #7D4A1B #1D7D1B #1B4E7D
square
#7B1B7D #7D4A1B #1D7D1B #1B4E7D
split-complementary
#7B1B7D #4E7D1B #1B7D4A
monochromatic
#190519 #49104B #7B1B7D #AD26AF #D23DD5

Accessibility & contrast

On white

9.15
#7B1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1B7D
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B7D#FFFFFF#000000##FFFFFF
##7B1B7D1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1b7d;
/* rgb */ color: rgb(123, 27, 125);
/* oklch */ color: oklch(42.4% 0.171 327.2);
Tailwind
colors: {
  custom: {
    50: '#a564a3',
    500: '#7b1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b7d;
$custom-light: #a564a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b7d",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 298.776,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42422,
    "c": 0.17099,
    "h": 327.2
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#7B1B7D
secondary
#45B143
accent
#E74044
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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