#7B1D87#7B1D87

#7B1D87 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.177 H 322.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#7B1D87
RGBrgb(123, 29, 135)
HSLhsl(293, 65%, 32%)
HSVhsv(293, 79%, 53%)
CMYKcmyk(8.9%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.44, 53.01, -38.27)
CIE-LCHlch(31.44, 65.38, 324.17°)
OKLaboklab(43.23% 0.1413 -0.107)
OKLCHoklch(43.23% 0.177 322.9)
XYZxyz(12.9805, 6.8397, 23.5535)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1D87 #29871D
analogous
#461D87 #7B1D87 #871D5E
triadic
#7B1D87 #877B1D #1D877B
tetradic
#7B1D87 #87461D #29871D #1D5E87
square
#7B1D87 #87461D #29871D #1D5E87
split-complementary
#7B1D87 #5E871D #1D8746
monochromatic
#1F0722 #4D1255 #7B1D87 #A928B9 #C747D7

Accessibility & contrast

On white

8.87
#7B1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1D87
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1D87#FFFFFF#000000##FFFFFF
##7B1D871.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2F4E85
Tritanopia (blue-blind)
#7D3251
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1d87;
/* rgb */ color: rgb(123, 29, 135);
/* oklch */ color: oklch(43.2% 0.177 322.9);
Tailwind
colors: {
  custom: {
    50: '#a565aa',
    500: '#7b1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7b1d87;
$custom-light: #a565aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1d87",
  "rgb": {
    "r": 123,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 293.208,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43233,
    "c": 0.17722,
    "h": 322.9
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#7B1D87
secondary
#53B946
accent
#E84053
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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