#7B1D71#7B1D71

#7B1D71 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.159 H 332.8°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7B1D71
RGBrgb(123, 29, 113)
HSLhsl(306, 62%, 30%)
HSVhsv(306, 76%, 48%)
CMYKcmyk(0%, 76.4%, 8.1%, 51.8%)
CIE-LABlab(30.12, 49.16, -26.52)
CIE-LCHlch(30.12, 55.85, 331.66°)
OKLaboklab(41.86% 0.1417 -0.0728)
OKLCHoklch(41.86% 0.159 332.8)
XYZxyz(11.5884, 6.2829, 16.2220)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D71 #1D7B27
analogous
#561D7B #7B1D71 #7B1D42
triadic
#7B1D71 #717B1D #1D717B
tetradic
#7B1D71 #7B561D #1D7B27 #1D427B
square
#7B1D71 #7B561D #1D7B27 #1D427B
split-complementary
#7B1D71 #427B1D #1D7B56
monochromatic
#190617 #491144 #7B1D71 #AD299E #D240C3

Accessibility & contrast

On white

9.31
#7B1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7B1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D71
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D71#FFFFFF#000000##FFFFFF
##7B1D711.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#812745
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b1d71;
/* rgb */ color: rgb(123, 29, 113);
/* oklch */ color: oklch(41.9% 0.159 332.8);
Tailwind
colors: {
  custom: {
    50: '#a4649a',
    500: '#7b1d71',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d71;
$custom-light: #a4649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d71",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 306.383,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.1593,
    "h": 332.8
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#7B1D71
secondary
#45AF50
accent
#E55443
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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