#7B1D7C#7B1D7C

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

Color values

HEX#7B1D7C
RGBrgb(123, 29, 124)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 77%, 49%)
CMYKcmyk(0.8%, 76.6%, 0%, 51.4%)
CIE-LABlab(30.75, 51.03, -32.48)
CIE-LCHlch(30.75, 60.49, 327.52°)
OKLaboklab(42.52% 0.1419 -0.0901)
OKLCHoklch(42.52% 0.168 327.6)
XYZxyz(12.2457, 6.5458, 19.6834)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D7C #1E7C1D
analogous
#4B1D7C #7B1D7C #7C1D4E
triadic
#7B1D7C #7C7B1D #1D7C7B
tetradic
#7B1D7C #7C4B1D #1E7C1D #1D4E7C
square
#7B1D7C #7C4B1D #1E7C1D #1D4E7C
split-complementary
#7B1D7C #4E7C1D #1D7C4B
monochromatic
#190619 #4A114A #7B1D7C #AC29AE #D141D3

Accessibility & contrast

On white

9.09
#7B1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1D7C
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D7C#FFFFFF#000000##FFFFFF
##7B1D7C1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#364D7A
Tritanopia (blue-blind)
#7F2C4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b1d7c;
/* rgb */ color: rgb(123, 29, 124);
/* oklch */ color: oklch(42.5% 0.168 327.6);
Tailwind
colors: {
  custom: {
    50: '#a464a2',
    500: '#7b1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d7c;
$custom-light: #a464a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d7c",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 299.368,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.16807,
    "h": 327.6
  },
  "luminance": 0.06545
}

Semantic roles & 50–950 ramp

primary
#7B1D7C
secondary
#46B045
accent
#E54344
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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