#7B1D8D#7B1D8D

#7B1D8D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.182 H 320.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#7B1D8D
RGBrgb(123, 29, 141)
HSLhsl(290, 66%, 33%)
HSVhsv(290, 79%, 55%)
CMYKcmyk(12.8%, 79.4%, 0%, 44.7%)
CIE-LABlab(31.84, 54.13, -41.35)
CIE-LCHlch(31.84, 68.12, 322.63°)
OKLaboklab(43.64% 0.1407 -0.116)
OKLCHoklch(43.64% 0.182 320.5)
XYZxyz(13.4149, 7.0135, 25.8413)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D8D #2F8D1D
analogous
#431D8D #7B1D8D #8D1D67
triadic
#7B1D8D #8D7B1D #1D8D7B
tetradic
#7B1D8D #8D431D #2F8D1D #1D678D
square
#7B1D8D #8D431D #2F8D1D #1D678D
split-complementary
#7B1D8D #678D1D #1D8D43
monochromatic
#220827 #4F135A #7B1D8D #A727C0 #C34BDA

Accessibility & contrast

On white

8.74
#7B1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7B1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D8D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D8D#FFFFFF#000000##FFFFFF
##7B1D8D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#7C3555
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1d8d;
/* rgb */ color: rgb(123, 29, 141);
/* oklch */ color: oklch(43.6% 0.182 320.5);
Tailwind
colors: {
  custom: {
    50: '#a565af',
    500: '#7b1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d8d;
$custom-light: #a565af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d8d",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 290.357,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.18232,
    "h": 320.5
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#7B1D8D
secondary
#5CBC4A
accent
#E93F5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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