#7B1D7B#7B1D7B

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

Color values

HEX#7B1D7B
RGBrgb(123, 29, 123)
HSLhsl(300, 62%, 30%)
HSVhsv(300, 76%, 48%)
CMYKcmyk(0%, 76.4%, 0%, 51.8%)
CIE-LABlab(30.69, 50.85, -31.95)
CIE-LCHlch(30.69, 60.05, 327.86°)
OKLaboklab(42.46% 0.1419 -0.0885)
OKLCHoklch(42.46% 0.167 328)
XYZxyz(12.1827, 6.5206, 19.3520)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D7B #1D7B1D
analogous
#4C1D7B #7B1D7B #7B1D4C
triadic
#7B1D7B #7B7B1D #1D7B7B
tetradic
#7B1D7B #7B4C1D #1D7B1D #1D4C7B
square
#7B1D7B #7B4C1D #1D7B1D #1D4C7B
split-complementary
#7B1D7B #4C7B1D #1D7B4C
monochromatic
#190619 #491149 #7B1D7B #AD29AD #D240D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B1D7B#FFFFFF#000000##FFFFFF
##7B1D7B1.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)
#08407E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#7F2C4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1d7b;
/* rgb */ color: rgb(123, 29, 123);
/* oklch */ color: oklch(42.5% 0.167 328.0);
Tailwind
colors: {
  custom: {
    50: '#a464a1',
    500: '#7b1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d7b;
$custom-light: #a464a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d7b",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 300,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42458,
    "c": 0.16726,
    "h": 328
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#7B1D7B
secondary
#45AF45
accent
#E54343
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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