#7B1D7D#7B1D7D

#7B1D7D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.169 H 327.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#7B1D7D
RGBrgb(123, 29, 125)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 77%, 49%)
CMYKcmyk(1.6%, 76.8%, 0%, 51%)
CIE-LABlab(30.81, 51.20, -33.02)
CIE-LCHlch(30.81, 60.92, 327.18°)
OKLaboklab(42.58% 0.1419 -0.0916)
OKLCHoklch(42.58% 0.169 327.1)
XYZxyz(12.3092, 6.5712, 20.0181)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D7D #1F7D1D
analogous
#4B1D7D #7B1D7D #7D1D4F
triadic
#7B1D7D #7D7B1D #1D7D7B
tetradic
#7B1D7D #7D4B1D #1F7D1D #1D4F7D
square
#7B1D7D #7D4B1D #1F7D1D #1D4F7D
split-complementary
#7B1D7D #4F7D1D #1D7D4B
monochromatic
#19061A #4A114B #7B1D7D #AC29AF #D041D3

Accessibility & contrast

On white

9.08
#7B1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D7D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D7D#FFFFFF#000000##FFFFFF
##7B1D7D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044180
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#7F2D4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1d7d;
/* rgb */ color: rgb(123, 29, 125);
/* oklch */ color: oklch(42.6% 0.169 327.1);
Tailwind
colors: {
  custom: {
    50: '#a564a3',
    500: '#7b1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d7d;
$custom-light: #a564a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d7d",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 298.75,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42583,
    "c": 0.16889,
    "h": 327.1
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#7B1D7D
secondary
#48B145
accent
#E54246
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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